Files
linux-odyssey/deployment/nginx.conf
T
wancat d8f8605df9 fix: deployment
+ include api-docs in nginx
+ include quests in docker compose
+ update README
2023-08-22 12:11:58 +08:00

26 lines
542 B
Nginx Configuration File

server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://backend:3000;
}
location /api-docs/ {
proxy_pass http://backend:3000;
}
location /socket.io/ {
proxy_pass http://backend:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}