ray-template/deploy/nginx.conf
XiaoDaiGua-Ray 59c1090ea4
feat(fullstack): add optional backend and source distributions
Add the NestJS backend with PostgreSQL and Redis, local setup, and
independent frontend and fullstack source archives.

Enforce permissions across redirects, let users dismiss the 403 page,
and restore missing translation warnings in development.
2026-11-06 19:53:49 +08:00

21 lines
578 B
Nginx Configuration File

server {
listen 80;
server_tokens off;
absolute_redirect off;
root /usr/share/nginx/html;
location = / { return 302 /ray-template/; }
location /api/ {
proxy_pass http://server:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 30s;
client_max_body_size 256k;
}
location /ray-template/ {
try_files $uri $uri/ /ray-template/index.html;
}
}