ยง2027-08-23
- upstream-45107, for Rocket.Chat --> hc4Focal.yushei.net:45107
# port 453107, hc4Focal.yushei.net:45107 Rocjet.Chat
server {
server_name munetaka.me:45107;
charset utf-8;
location / {
proxy_pass http://hc4Focal.yushei.net:45107;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host munetaka.me;
proxy_set_header X-Forwarded-Port 45107;
# WebSocket-specific settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
}
listen 45107 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/munetaka.me/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/munetaka.me/privkey.pem; # managed by Certbot
}