From 7d1dfb70c77bab274bc7a85db0250914fc359bc2 Mon Sep 17 00:00:00 2001 From: Jiale Date: Fri, 25 Apr 2025 15:29:19 +0800 Subject: [PATCH] =?UTF-8?q?init(=E5=88=9D=E5=A7=8B=E5=8C=96):=20?= =?UTF-8?q?=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/nginx.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/nginx.conf b/scripts/nginx.conf index a86f30b..77da5c3 100644 --- a/scripts/nginx.conf +++ b/scripts/nginx.conf @@ -1,13 +1,13 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + http { include mime.types; default_type application/octet-stream; - types { - application/javascript js mjs; - text/css css; - text/html html; - } - sendfile on; server { @@ -32,7 +32,7 @@ http { } } - # ✅ 新增:代理 API 请求到后端容器 + # 代理 API 请求到后端容器 location /api/ { proxy_pass http://127.0.0.1:48080; proxy_set_header Host $host; -- 2.30.2