I applied another dirty trick to solve this without touching nginx config of discourse or host.
Solved.