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{