39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
|
server {
|
||
|
|
||
|
server_name live.shoebottom.ca;
|
||
|
|
||
|
|
||
|
location / {
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Forwarded-Host $host;
|
||
|
proxy_set_header X-Forwarded-Server $host;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "upgrade";
|
||
|
proxy_pass http://127.0.0.1:8080;
|
||
|
}
|
||
|
|
||
|
listen 443 ssl; # managed by Certbot
|
||
|
ssl_certificate /etc/letsencrypt/live/live.shoebottom.ca/fullchain.pem; # managed by Certbot
|
||
|
ssl_certificate_key /etc/letsencrypt/live/live.shoebottom.ca/privkey.pem; # managed by Certbot
|
||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||
|
|
||
|
}
|
||
|
server {
|
||
|
if ($host = live.shoebottom.ca) {
|
||
|
return 301 https://$host$request_uri;
|
||
|
} # managed by Certbot
|
||
|
|
||
|
|
||
|
|
||
|
server_name live.shoebottom.ca;
|
||
|
listen 80;
|
||
|
return 404; # managed by Certbot
|
||
|
|
||
|
|
||
|
}
|