chore(config): Make Nacos namespace configurable

- Replace hardcoded public namespace with NACOS_NAMESPACE
- Document nacos init container troubleshooting for 1Panel deploy
This commit is contained in:
Toys-A
2026-08-07 03:04:33 +08:00
parent 16e9d7f9bd
commit 05988c4325
21 changed files with 217 additions and 41 deletions
@@ -5,6 +5,8 @@ server {
root /usr/share/nginx/html;
index index.html;
resolver 127.0.0.11 valid=10s ipv6=off;
client_max_body_size 1024m;
gzip on;
@@ -15,8 +17,14 @@ server {
try_files $uri $uri/ /index.html;
}
location ~ /\.(?!well-known(?:/|$)) {
return 404;
}
location /api/admin/ {
proxy_pass http://video-gateway:9000/admin/;
set $gateway_upstream video-gateway:9000;
rewrite ^/api/admin/(.*)$ /admin/$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;
@@ -28,7 +36,9 @@ server {
}
location /media/ {
proxy_pass http://minio:9000/;
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;