30 lines
725 B
Plaintext
30 lines
725 B
Plaintext
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name chat.live.umm.gay;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/chat.live.umm.gay/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/chat.live.umm.gay/privkey.pem;
|
|
|
|
location / {
|
|
root /srv/www/chat.live.umm.gay;
|
|
}
|
|
|
|
location /webirc {
|
|
proxy_pass http://127.0.0.1:3002/;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_read_timeout 600s;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|