Add an example of the nginx configuration.
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-11 22:23:01 +03:00
parent c7d193e2b3
commit 6636cb8b6b
2 changed files with 27 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
server {
server_name example.com;
location / {
proxy_pass http://localhost:4000;
# Add WebSocket support
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;
proxy_set_header X-Forwarded-Proto $scheme;
}
}