修改SSO

This commit is contained in:
ZhuJW
2026-07-10 21:10:17 +08:00
parent fce40c7d6c
commit 6ebd45d894
14 changed files with 66 additions and 76 deletions
+8 -2
View File
@@ -1,6 +1,6 @@
server {
listen 80;
server_name 150.158.236.152;
server_name cadb.dvb.corpinter.net.cn;
client_max_body_size 100M;
# root /usr/share/nginx/html;
include /etc/nginx/mime.types;
@@ -39,7 +39,7 @@ server {
proxy_busy_buffers_size 256k;
proxy_max_temp_file_size 1024m;
proxy_pass http://172.17.0.1:5221/accidentportal/api/;
proxy_pass https://cadb.dvb.corpinter.net.cn/accidentportal/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -53,6 +53,12 @@ server {
# 关键:Cookie处理
proxy_cookie_path / "/; SameSite=Lax";
}
# 图片/上传(IMAGE_BASE_URL + file_path 拼成 /uploads/...
location /accidentportal/uploads/ {
proxy_pass https://cadb.dvb.corpinter.net.cn/accidentportal/uploads/;
proxy_set_header Host $host;
}
}