mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-17 16:13:36 +08:00
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.
21 lines
578 B
Nginx Configuration File
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;
|
|
}
|
|
}
|