From 37f52097847f9025589c79034be2454432c55433 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 02 十月 2026 10:12:27 +0800
Subject: [PATCH] docs(交接): 记录关机前开发服务已停止
---
deploy-templates/frontend/nginx.conf.example | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/deploy-templates/frontend/nginx.conf.example b/deploy-templates/frontend/nginx.conf.example
new file mode 100644
index 0000000..4df1301
--- /dev/null
+++ b/deploy-templates/frontend/nginx.conf.example
@@ -0,0 +1,15 @@
+# 鍓嶇 nginx 閰嶇疆绀轰緥锛堝彧鏈夊湪涓嶆兂鐢ㄣ�宩ar 鍐呭祵鍓嶇銆嶆椂鎵嶉渶瑕侊級
+server {
+ listen 8080;
+ server_name localhost;
+ root /opt/traffic-audit/frontend/dist; # 鏀规垚瀹為檯璺緞
+ index index.html;
+ location /api/ {
+ proxy_pass http://127.0.0.1:8090;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_read_timeout 300s;
+ }
+ location / { try_files $uri $uri/ /index.html; }
+}
--
Gitblit v1.9.1