commented out all but reterup.it servers
This commit is contained in:
parent
406a140843
commit
680920b196
|
@ -41,47 +41,47 @@ http {
|
||||||
|
|
||||||
|
|
||||||
# Optional server block for HTTP to HTTPS redirection
|
# Optional server block for HTTP to HTTPS redirection
|
||||||
server {
|
# server {
|
||||||
listen 80; # Listen on port 80 for HTTP
|
# listen 80; # Listen on port 80 for HTTP
|
||||||
server_name *.sw1.sselab.ddns.net;
|
# server_name *.sw1.sselab.ddns.net;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
# location / {
|
||||||
# Redirect all HTTP traffic to HTTPS
|
# # Redirect all HTTP traffic to HTTPS
|
||||||
# TODO requires https
|
# # TODO requires https
|
||||||
# return 301 https://$host$request_uri;
|
# # return 301 https://$host$request_uri;
|
||||||
|
|
||||||
proxy_pass http://swarm1_cluster;
|
# proxy_pass http://swarm1_cluster;
|
||||||
proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
# proxy_set_header Connection 'upgrade';
|
||||||
proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
proxy_cache_bypass $http_upgrade;
|
# proxy_cache_bypass $http_upgrade;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
||||||
server {
|
# server {
|
||||||
listen 80;
|
# listen 80;
|
||||||
server_name *.sw1.hassallab.it;
|
# server_name *.sw1.hassallab.it;
|
||||||
|
|
||||||
location / {
|
# location / {
|
||||||
# Redirect all HTTP traffic to HTTPS
|
# # Redirect all HTTP traffic to HTTPS
|
||||||
# TODO requires https
|
# # TODO requires https
|
||||||
# return 301 https://$host$request_uri;
|
# # return 301 https://$host$request_uri;
|
||||||
|
|
||||||
proxy_pass http://swarm1_cluster;
|
# proxy_pass http://swarm1_cluster;
|
||||||
proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
# proxy_set_header Connection 'upgrade';
|
||||||
proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
proxy_cache_bypass $http_upgrade;
|
# proxy_cache_bypass $http_upgrade;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
Loading…
Reference in New Issue