2025-05-19 09:54:30 +08:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
listen 443 ssl;
|
|
|
|
|
server_name ${OIDC_SERVER_DOMAIN};
|
2025-05-15 16:37:15 +08:00
|
|
|
|
2025-05-19 09:54:30 +08:00
|
|
|
# SSL证书配置
|
|
|
|
|
ssl_certificate /etc/nginx/t-aaron.com.pem;
|
|
|
|
|
ssl_certificate_key /etc/nginx/t-aaron.com.key;
|
|
|
|
|
ssl_session_timeout 5m;
|
|
|
|
|
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
|
|
|
|
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
|
|
|
|
ssl_prefer_server_ciphers on;
|
2025-05-15 16:37:15 +08:00
|
|
|
|
2025-05-19 09:54:30 +08:00
|
|
|
location / {
|
2025-05-16 15:14:22 +08:00
|
|
|
proxy_pass http://${OIDC_SERVER_NAME}:8090;
|
2025-05-15 16:37:15 +08:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2025-05-19 09:54:30 +08:00
|
|
|
|
|
|
|
|
# 只添加这一行来修复重定向
|
2025-05-26 09:42:53 +08:00
|
|
|
proxy_redirect http://${OIDC_SERVER_DOMAIN} https://${OIDC_DOMAIN_FULL};
|
2025-05-15 16:37:15 +08:00
|
|
|
}
|
2025-05-19 09:54:30 +08:00
|
|
|
}
|