diff --git a/nginx_secfit.conf b/nginx_secfit.conf index 5047f73..04b2ae4 100644 --- a/nginx_secfit.conf +++ b/nginx_secfit.conf @@ -3,7 +3,7 @@ server { listen 80; location / { - proxy_pass http://0.0.0.0:8080/; + proxy_pass http://0.0.0.0:${PROD_PORT_PREFIX}${GATEWAY_POSTFIX}/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -12,10 +12,10 @@ server { # Development server configuration server { - listen 8081; + listen ${DEV_PORT_PREFIX}7; location / { - proxy_pass http://0.0.0.0:8081/; + proxy_pass http://0.0.0.0:${DEV_PORT_PREFIX}${GATEWAY_POSTFIX}/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -24,10 +24,10 @@ server { # Staging server configuration server { - listen 8082; + listen ${STAG_PORT_PREFIX}${GATEWAY_POSTFIX}7; location / { - proxy_pass http://0.0.0.0:8082/; + proxy_pass http://0.0.0.0:${STAG_PORT_PREFIX}${GATEWAY_POSTFIX}/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;