From a9c690f45fe1aa28c44e8e4866579070b3da17e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauritz=20Skog=C3=B8y?= Date: Tue, 4 Mar 2025 12:05:01 +0100 Subject: [PATCH] fix error --- nginx_secfit.conf | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/nginx_secfit.conf b/nginx_secfit.conf index f4c9a36..6ff2deb 100644 --- a/nginx_secfit.conf +++ b/nginx_secfit.conf @@ -2,30 +2,30 @@ server { listen 80; location / { - proxy_pass http://0.0.0.0:23/; - proxy_set_header Host ; - proxy_set_header X-Real-IP ; - proxy_set_header X-Forwarded-For ; + 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; } } server { - listen 217; + listen ${DEV_PORT_PREFIX}7; location / { - proxy_pass http://0.0.0.0:/; - proxy_set_header Host ; - proxy_set_header X-Real-IP ; - proxy_set_header X-Forwarded-For ; + 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; } } server { - listen 227; + listen ${STAG_PORT_PREFIX}7; location / { - proxy_pass http://0.0.0.0:22/; - proxy_set_header Host ; - proxy_set_header X-Real-IP ; - proxy_set_header X-Forwarded-For ; + 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; } }