Files
Toys-A 05988c4325 chore(config): Make Nacos namespace configurable
- Replace hardcoded public namespace with NACOS_NAMESPACE
- Document nacos init container troubleshooting for 1Panel deploy
2026-08-07 03:04:33 +08:00

55 lines
1.4 KiB
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
resolver 127.0.0.11 valid=10s ipv6=off;
client_max_body_size 1024m;
gzip on;
gzip_min_length 1024;
gzip_types text/plain text/css application/json application/javascript application/xml;
location / {
try_files $uri $uri/ /index.html;
}
location ~ /\.(?!well-known(?:/|$)) {
return 404;
}
location /api/ {
set $gateway_upstream video-gateway:9000;
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://$gateway_upstream;
proxy_http_version 1.1;
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;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_request_buffering off;
}
location /media/ {
set $minio_upstream minio:9000;
rewrite ^/media/(.*)$ /$1 break;
proxy_pass http://$minio_upstream;
proxy_http_version 1.1;
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;
proxy_buffering off;
}
location = /health {
access_log off;
return 200 "OK\n";
}
}