# xim.bchongw.com admin routes. API and WebSocket use the BaoTa Go proxy. server_tokens off; client_max_body_size 16m; add_header X-Content-Type-Options nosniff always; add_header Referrer-Policy no-referrer always; add_header X-Frame-Options DENY always; location ^~ /admin/v1/ { proxy_pass http://127.0.0.1:18888; 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_connect_timeout 10s; proxy_read_timeout 60s; } location = /admin { return 301 /admin/; } location = /admin/ { root /www/wwwroot/xim.bchongw.com; add_header Cache-Control "no-store, no-cache, must-revalidate"; try_files /admin/index.html =404; } location = /admin/index.html { root /www/wwwroot/xim.bchongw.com; add_header Cache-Control "no-store, no-cache, must-revalidate"; try_files $uri =404; } location = /admin/_app.config.js { root /www/wwwroot/xim.bchongw.com; add_header Cache-Control "no-store, no-cache, must-revalidate"; try_files $uri =404; } location ^~ /admin/ { root /www/wwwroot/xim.bchongw.com; expires 7d; add_header Cache-Control "public, immutable"; try_files $uri $uri/ /admin/index.html; }