35 lines
1019 B
Plaintext
35 lines
1019 B
Plaintext
server {
|
|
listen 80;
|
|
server_name nummus.teier.net;
|
|
return 301 https://$server_name:443$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443;
|
|
server_name nummus.teier.net;
|
|
|
|
ssl on;
|
|
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8082;
|
|
|
|
# Configuration for WebSockets
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_cache off;
|
|
|
|
# Configuration for ServerSentEvents
|
|
proxy_buffering off;
|
|
|
|
# Configuration for LongPolling or if your KeepAliveInterval is longer than 60 seconds
|
|
proxy_read_timeout 100s;
|
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|