From bdeb84293935f4abd3cffc60164718f8e3a9fa9b Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:16:34 +0800 Subject: [PATCH] feat: change 1panel v1 docs url (#8993) --- cmd/server/nginx_conf/proxy.conf | 1 + frontend/src/store/modules/global.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/server/nginx_conf/proxy.conf b/cmd/server/nginx_conf/proxy.conf index ce1203d24..10496cbdf 100644 --- a/cmd/server/nginx_conf/proxy.conf +++ b/cmd/server/nginx_conf/proxy.conf @@ -7,6 +7,7 @@ location ^~ /test { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Port $server_port; proxy_http_version 1.1; add_header X-Cache $upstream_cache_status; add_header Cache-Control no-cache; diff --git a/frontend/src/store/modules/global.ts b/frontend/src/store/modules/global.ts index 4f71d0580..424f3d7fe 100644 --- a/frontend/src/store/modules/global.ts +++ b/frontend/src/store/modules/global.ts @@ -49,7 +49,7 @@ const GlobalStore = defineStore({ state.themeConfig.theme === 'dark' || (state.themeConfig.theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches), isDarkGoldTheme: (state) => state.themeConfig.primary === '#F0BE96' && state.isProductPro, - docsUrl: (state) => (state.isIntl ? 'https://docs.1panel.pro' : 'https://1panel.cn/docs'), + docsUrl: (state) => (state.isIntl ? 'https://docs.1panel.pro' : 'https://1panel.cn/docs/v1'), }, actions: { setOpenMenuTabs(openMenuTabs: boolean) {