From 109d9272eced7a506fce0e5acbebf069b5b3d809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Mon, 26 May 2025 10:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E7=9A=84?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- environment.sh | 1 + nginx/vhosts/airport.conf | 3 +++ 2 files changed, 4 insertions(+) diff --git a/environment.sh b/environment.sh index 09850bf..04614b8 100644 --- a/environment.sh +++ b/environment.sh @@ -59,6 +59,7 @@ export OIDC_DOMAIN_FULL=${OIDC_SERVER_DOMAIN}:${NGINX_HTTPS_PORT} export MINIO_DOMAIN=minio-${DOMAIN}.${DOMAIN_END} export MINIO_CONSOLE_DOMAIN=minioconsole-${DOMAIN}.${DOMAIN_END} export AIRPORT_DOMAIN=airport-${DOMAIN}.${DOMAIN_END} +export AIRPORT_DOMAIN_FULL=${AIRPORT_DOMAIN}:${NGINX_HTTPS_PORT} export SRS_DOMAIN=srs-${DOMAIN}.${DOMAIN_END} export HHZ_DOMAIN=hhz-${DOMAIN}.${DOMAIN_END} export DSP_DOMAIN=dsp-${DOMAIN}.${DOMAIN_END} diff --git a/nginx/vhosts/airport.conf b/nginx/vhosts/airport.conf index aedc8b1..65d28ec 100644 --- a/nginx/vhosts/airport.conf +++ b/nginx/vhosts/airport.conf @@ -24,6 +24,9 @@ location /{ try_files $uri $uri/ @router; index index.html; + + # 只添加这一行来修复重定向 + proxy_redirect http://${AIRPORT_DOMAIN} https://${AIRPORT_DOMAIN_FULL}; } location @router{