You've been acting as though everything is well because you're putting a lot of effort into persuading yourself of that.
You don't want to burden people with your problems, so you've been acting like everything is alright.
You've been acting as though everything is alright because you don't want to let those close to you down.
You've been trying to hide your worst feelings from others by acting as though everything is alright.