From 680920b196231610e0189f79076d1f8b87ba1bed Mon Sep 17 00:00:00 2001 From: Fabio Sinibaldi Date: Tue, 11 Mar 2025 16:59:45 +0100 Subject: [PATCH] commented out all but reterup.it servers --- .../first-level-nginx/configs/node.conf | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/dockerized/first-level-nginx/configs/node.conf b/dockerized/first-level-nginx/configs/node.conf index 4f5031c..ccc48d5 100644 --- a/dockerized/first-level-nginx/configs/node.conf +++ b/dockerized/first-level-nginx/configs/node.conf @@ -41,47 +41,47 @@ http { # Optional server block for HTTP to HTTPS redirection - server { - listen 80; # Listen on port 80 for HTTP - server_name *.sw1.sselab.ddns.net; + # server { + # listen 80; # Listen on port 80 for HTTP + # server_name *.sw1.sselab.ddns.net; - location / { - # Redirect all HTTP traffic to HTTPS - # TODO requires https - # return 301 https://$host$request_uri; + # location / { + # # Redirect all HTTP traffic to HTTPS + # # TODO requires https + # # return 301 https://$host$request_uri; - proxy_pass http://swarm1_cluster; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - } + # proxy_pass http://swarm1_cluster; + # proxy_http_version 1.1; + # proxy_set_header Upgrade $http_upgrade; + # proxy_set_header Connection 'upgrade'; + # proxy_set_header Host $host; + # proxy_cache_bypass $http_upgrade; + # proxy_set_header X-Real-IP $remote_addr; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # } + # } - server { - listen 80; - server_name *.sw1.hassallab.it; + # server { + # listen 80; + # server_name *.sw1.hassallab.it; - location / { - # Redirect all HTTP traffic to HTTPS - # TODO requires https - # return 301 https://$host$request_uri; + # location / { + # # Redirect all HTTP traffic to HTTPS + # # TODO requires https + # # return 301 https://$host$request_uri; - proxy_pass http://swarm1_cluster; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - } + # proxy_pass http://swarm1_cluster; + # proxy_http_version 1.1; + # proxy_set_header Upgrade $http_upgrade; + # proxy_set_header Connection 'upgrade'; + # proxy_set_header Host $host; + # proxy_cache_bypass $http_upgrade; + # proxy_set_header X-Real-IP $remote_addr; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # } + # } server {