|
@ -1,13 +1,13 @@ |
|
|
|
|
|
worker_processes 1; |
|
|
|
|
|
|
|
|
|
|
|
events { |
|
|
|
|
|
worker_connections 1024; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
http { |
|
|
http { |
|
|
include mime.types; |
|
|
include mime.types; |
|
|
default_type application/octet-stream; |
|
|
default_type application/octet-stream; |
|
|
|
|
|
|
|
|
types { |
|
|
|
|
|
application/javascript js mjs; |
|
|
|
|
|
text/css css; |
|
|
|
|
|
text/html html; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sendfile on; |
|
|
sendfile on; |
|
|
|
|
|
|
|
|
server { |
|
|
server { |
|
@ -32,7 +32,7 @@ http { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# ✅ 新增:代理 API 请求到后端容器 |
|
|
# 代理 API 请求到后端容器 |
|
|
location /api/ { |
|
|
location /api/ { |
|
|
proxy_pass http://127.0.0.1:48080; |
|
|
proxy_pass http://127.0.0.1:48080; |
|
|
proxy_set_header Host $host; |
|
|
proxy_set_header Host $host; |
|
|