init(初始化): 🎉 #9

Merged
root merged 1 commits from cjl-dev into master 2 months ago
  1. 14
      scripts/nginx.conf

14
scripts/nginx.conf

@ -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;

Loading…
Cancel
Save