This commit is contained in:
parent
7db7ea17ba
commit
8820452c35
|
|
@ -1,39 +0,0 @@
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen 443 ssl;
|
|
||||||
listen 3443 ssl;
|
|
||||||
server_name ${OIDC_ADMIN_DOMAIN};
|
|
||||||
|
|
||||||
|
|
||||||
# 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;
|
|
||||||
|
|
||||||
# 开启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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -20,7 +20,7 @@ spring:
|
||||||
oauth2:
|
oauth2:
|
||||||
resource-server:
|
resource-server:
|
||||||
jwt:
|
jwt:
|
||||||
issuer-uri: https://oidc-bazhong.jouavcloud.com:3443
|
issuer-uri: https://oidc-bazhong.bazhongfeifu.com:3443
|
||||||
cloud:
|
cloud:
|
||||||
consul:
|
consul:
|
||||||
host: CONSUL_bazhong # consul 所在服务地址
|
host: CONSUL_bazhong # consul 所在服务地址
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue