fix nginx and variables in app