This commit is contained in:
toom1996
2026-10-20 23:11:57 +08:00
parent 5db90af73a
commit acc0928401
5 changed files with 313 additions and 148 deletions

View File

@ -71,7 +71,7 @@ server {
# 内部:前端构建期取 SSG 数据(只绑宿主回环,前端镜像 build 时用 host 网络访问)
server {
listen 127.0.0.1:18091;
listen 18091; # 容器内必须监听 0.0.0.0,否则 docker 端口发布到容器网卡时连不上;宿主机只发布到 127.0.0.1
access_log off;
location / {
proxy_pass http://$ssg_up;
@ -81,7 +81,7 @@ server {
# 内部:管理后台(只绑宿主回环;远程访问用 SSH 隧道到 18092)
server {
listen 127.0.0.1:18092;
listen 18092; # 同上:容器内回环监听会导致 docker 端口发布不可达(管理后台/爬虫入库走此口)
location / {
proxy_pass http://$admin_up;
proxy_set_header Host $host;