106.52.199.114:8001;
This commit is contained in:
parent
5748690443
commit
0c008f42a4
|
@ -77,8 +77,8 @@ http {
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
||||||
|
|
||||||
proxy_set_header Host $host:$server_port;
|
proxy_set_header Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
||||||
|
@ -99,8 +99,8 @@ http {
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
||||||
|
|
||||||
proxy_set_header Host $host:$server_port;
|
proxy_set_header Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
||||||
|
@ -116,8 +116,8 @@ http {
|
||||||
location = /auth/.well-known/openid-configuration {
|
location = /auth/.well-known/openid-configuration {
|
||||||
proxy_pass https://sys_api/.well-known/openid-configuration;
|
proxy_pass https://sys_api/.well-known/openid-configuration;
|
||||||
# 核心:
|
# 核心:
|
||||||
proxy_set_header Host $host:$server_port;
|
proxy_set_header Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
# 动态修改返回的JSON中的URL
|
# 动态修改返回的JSON中的URL
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
@ -183,8 +183,8 @@ http {
|
||||||
proxy_ssl_session_reuse off;
|
proxy_ssl_session_reuse off;
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
# 关键 2: 覆盖 Host 头,模拟 Vite 的 changeOrigin=true
|
||||||
proxy_set_header Host $host:$server_port;
|
proxy_set_header Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
proxy_set_header Authorization $http_authorization; # 传递 Authorization 头
|
||||||
|
@ -199,8 +199,8 @@ http {
|
||||||
location = /auth/.well-known/openid-configuration {
|
location = /auth/.well-known/openid-configuration {
|
||||||
proxy_pass https://sys_api/.well-known/openid-configuration;
|
proxy_pass https://sys_api/.well-known/openid-configuration;
|
||||||
|
|
||||||
proxy_set_header Host $host:$server_port;
|
proxy_set_header Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
proxy_set_header X-Forwarded-Host 106.52.199.114:8001;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
# 动态修改返回的JSON中的URL
|
# 动态修改返回的JSON中的URL
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
Loading…
Reference in New Issue