From 7ca0fd8de8adfb05abab18c1463a85165053da1c Mon Sep 17 00:00:00 2001 From: aipper Date: Sat, 1 Nov 2025 19:46:50 +0800 Subject: [PATCH] test --- nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nginx.conf b/nginx.conf index d39d484..d349287 100644 --- a/nginx.conf +++ b/nginx.conf @@ -80,6 +80,21 @@ http { proxy_read_timeout 300s; proxy_connect_timeout 75s; } + + # 兼容开发环境的/apis路径 + location /apis/ { + proxy_pass http://digital-archive-app:9081/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + 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_set_header X-Forwarded-Proto $scheme; + proxy_cache_bypass $http_upgrade; + proxy_read_timeout 300s; + proxy_connect_timeout 75s; + } # Vue路由支持 location / {