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 {