2023-02-23 11:19:57 +00:00
|
|
|
map $http_upgrade $connection_upgrade {
|
|
|
|
default upgrade;
|
|
|
|
'' close;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
server_name live.umm.gay;
|
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/live.umm.gay/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/live.umm.gay/privkey.pem;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://127.0.0.1:3000/;
|
|
|
|
}
|
|
|
|
|
2023-02-23 11:44:52 +00:00
|
|
|
location ^~ /api/wish-server/ {
|
2023-02-23 11:19:57 +00:00
|
|
|
proxy_pass http://127.0.0.1:3001/;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_connect_timeout 1d;
|
|
|
|
proxy_send_timeout 1d;
|
|
|
|
proxy_read_timeout 1d;
|
|
|
|
}
|
|
|
|
}
|