This commit is contained in:
parent
37d7302f85
commit
4ce0316158
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue