Combine soy sauce, brown sugar, vinegar, garlic, ginger, and red pepper flakes in a medium bowl. Place 1/2 cup of the mixture into a small saucepan. Add 2 tablespoons olive oil and onion to the remaining mixture in the bowl. Transfer to a large resealable plastic bag. Add salmon and toss to coat. Refrigerate for one hour, turning the bag once or twice.