2023-07-14 16:33:24 -05:00
|
|
|
server {
|
|
|
|
server_name changethis;
|
|
|
|
|
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
2023-12-13 09:41:34 -05:00
|
|
|
|
2023-07-14 16:33:24 -05:00
|
|
|
ssl_certificate /etc/letsencrypt/live/changethis/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/changethis/privkey.pem;
|
|
|
|
|
2023-12-13 09:41:34 -05:00
|
|
|
location / {
|
|
|
|
proxy_pass http://localhost:7100;
|
2023-12-13 09:44:42 -05:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
2023-12-13 09:41:34 -05:00
|
|
|
}
|
2023-07-14 16:33:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name changethis;
|
2023-12-13 09:41:59 -05:00
|
|
|
return 301 https://changethis$request_uri;
|
|
|
|
}
|