Fixes nginx configs to pass correct application environment