From c875001c96a32696f760d97f32565312f6bcdca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauritz=20Hardersen=20Skog=C3=B8y?= Date: Tue, 4 Mar 2025 11:29:00 +0100 Subject: [PATCH] Fix from server --- nginx_secfit.conf | 50 +++++++++++++++++++++------------------------- nginx_template.txt | 2 +- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/nginx_secfit.conf b/nginx_secfit.conf index 04b2ae4..f4c9a36 100644 --- a/nginx_secfit.conf +++ b/nginx_secfit.conf @@ -1,35 +1,31 @@ -# Production server configuration server { - listen 80; + listen 80; - location / { - 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; - } + 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 ; + } } -# Development server configuration server { - listen ${DEV_PORT_PREFIX}7; - - location / { - 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; - } + listen 217; + location / { + proxy_pass http://0.0.0.0:/; + proxy_set_header Host ; + proxy_set_header X-Real-IP ; + proxy_set_header X-Forwarded-For ; + } } -# Staging server configuration -server { - listen ${STAG_PORT_PREFIX}${GATEWAY_POSTFIX}7; - location / { - 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; - } -} \ No newline at end of file +server { + listen 227; + 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 ; + } +} diff --git a/nginx_template.txt b/nginx_template.txt index 26926ed..6ff2deb 100644 --- a/nginx_template.txt +++ b/nginx_template.txt @@ -12,7 +12,7 @@ server { server { listen ${DEV_PORT_PREFIX}7; location / { - proxy_pass http://0.0.0.0:${envDEV_PORT_PREFIX}${GATEWAY_POSTFIX}/; + 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;