How are you handling the proxying to discourse in nginx will determine if it is configured correct or not.