UPDATE
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
toom1996
2026-08-22 01:51:42 +08:00
parent 975c55feb2
commit 0df14036cf
16 changed files with 270 additions and 1023 deletions

View File

@ -10,7 +10,13 @@ server {
try_files $uri $uri/ /index.html;
}
# 反向代理后端 API:浏览器走同源 /api,由 nginx 转发到 backend 容器
# 网关隔离:SSG 内部接口只存在于 backend 的 8091 端口(回环绑定,nginx 不反代)。
# 若有人从公网域名探测 /api/ssg/*,此处直接 404,确保构建期全量数据绝不从公网出口。
location /api/ssg/ {
return 404;
}
# 反向代理后端 API:浏览器走同源 /api,由 nginx 转发到 backend 容器(仅 8090 公开端口)
location /api/ {
proxy_pass http://backend:8090/;
proxy_set_header Host $host;