From 4ce031615832f42528b53b6db59d718df541bf83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Thu, 5 Jun 2025 15:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/vhosts/oidcadmin.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nginx/vhosts/oidcadmin.conf diff --git a/nginx/vhosts/oidcadmin.conf b/nginx/vhosts/oidcadmin.conf new file mode 100644 index 0000000..ddd14e1 --- /dev/null +++ b/nginx/vhosts/oidcadmin.conf @@ -0,0 +1,30 @@ +server { + listen 80; + listen 443 ssl; + listen 3443 ssl; + server_name ${OIDC_ADMIN_DOMAIN}; + + # 开启gzip功能 + gzip on; + gzip_min_length 10k; + gzip_comp_level 9; + gzip_types text/plain text/css application/javascript application/x-javascript text/javascript application/xml; + gzip_vary on; + gzip_disable "MSIE [1-6]\."; + + location /{ + try_files $uri $uri/ @router; + index index.html; + } + + location @router{ + rewrite ^.*$ /index.html last; + } + + location /oidc { + proxy_pass http://gatewayService; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } +}