Just wanted to offer you some encouragement! We also had a very gassy baby, who also turned out to have reflux. He has silent reflux (means no spit-up), so didn't get truly diagnosed until 4 months. But DH & I quickly realized that he slept better when upright. Like you, we struggled with him b/c although he was an excellent sleeper normally, the pain would frequently keep him up.
I don't know if you BF or bottle feed, but if you bottle feed you may try to find a more friendly formula. If you BF, you can examine your diet for problem foods. We finally got our LO on a formula that GREATLY reduced the gas. On top of that, we gave gas drops and Gripe Water (a naturopathic remedy for gas) with every feeding. Also elevated the head of the crib. Even with all these changes, LO still had bad days and/or nights on occasion. You just do whatever you can to keep them comfortable and help them sleep. I quickly found out that when he was in pain, it was useless to 'go by the book'; I had to help him sleep in whatever way I could in order to keep him from getting overtired and out of his mind with misery.
Now that you've figured out the problem, I'm sure you'll find a solution too! Good luck! You're doing fabulously!