Update LetsEncrypt.md

Updated based on the solution by ArakiSatoshi for issue #8074.
Added lines for websocket support
This commit is contained in:
Arlolic 2025-01-07 15:16:54 -05:00 committed by GitHub
parent f11856b842
commit c49dd898b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,12 @@ Let's Encrypt provides free SSL certificates trusted by most browsers, ideal for
location / {
proxy_pass http://host.docker.internal:3000;
# Add WebSocket support (Necessary for version 0.5.0 and up)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;