Compare commits
2 Commits
c17ee35947
...
258250d574
| Author | SHA1 | Date |
|---|---|---|
|
|
258250d574 | |
|
|
d76424a208 |
|
|
@ -11,6 +11,7 @@ export XXLJOB_DOMAIN=xxljob-${DOMAIN}.t-aaron.com
|
||||||
export OIDC_SERVER_DOMAIN=oidc-${DOMAIN}.t-aaron.com
|
export OIDC_SERVER_DOMAIN=oidc-${DOMAIN}.t-aaron.com
|
||||||
export MINIO_DOMAIN=minio-${DOMAIN}.t-aaron.com
|
export MINIO_DOMAIN=minio-${DOMAIN}.t-aaron.com
|
||||||
export MINIO_CONSOLE_DOMAIN=minioconsole-${DOMAIN}.t-aaron.com
|
export MINIO_CONSOLE_DOMAIN=minioconsole-${DOMAIN}.t-aaron.com
|
||||||
|
export AIRPORT_DOMAIN=airport-${DOMAIN}.t-aaron.com
|
||||||
|
|
||||||
export REGISTRY_HOST=${REGISTRY}/tuoheng/
|
export REGISTRY_HOST=${REGISTRY}/tuoheng/
|
||||||
#export REGISTRY_HOST=""
|
#export REGISTRY_HOST=""
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,49 @@
|
||||||
|
server
|
||||||
|
{
|
||||||
|
listen 80;
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name ${AIRPORT_DOMAIN}
|
||||||
|
root /data/tuoheng_airport_web/dist;
|
||||||
|
|
||||||
|
# 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 /airport {
|
||||||
|
proxy_pass http://gatewayService/airport;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /permission {
|
||||||
|
proxy_pass http://airportService/permission;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1 +1,7 @@
|
||||||
|
upstream gatewayService {
|
||||||
|
server ${GATEWAY_NAME}:9011;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream airportService {
|
||||||
|
server ${AIRPORT_NAME}:9060;
|
||||||
|
}
|
||||||
|
|
@ -65,6 +65,23 @@ spring:
|
||||||
allowCredentials: true
|
allowCredentials: true
|
||||||
maxAge: 360000
|
maxAge: 360000
|
||||||
routes:
|
routes:
|
||||||
|
# 机场平台 platform服务
|
||||||
|
- id: tuoheng-airport-admin
|
||||||
|
uri: http://${AIRPORT_NAME}:9060
|
||||||
|
predicates:
|
||||||
|
- Path=/airport/admin/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=2
|
||||||
|
metadata:
|
||||||
|
response-timeout: 20000
|
||||||
|
connect-timeout: 30000
|
||||||
|
# 机场平台 platform服务 webSocket
|
||||||
|
- id: tuoheng-airport-admin
|
||||||
|
uri: ws://${AIRPORT_NAME}:9060
|
||||||
|
predicates:
|
||||||
|
- Path=/airport/socket/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=2
|
||||||
# 后台管理
|
# 后台管理
|
||||||
- id: tuoheng-dsp-admin
|
- id: tuoheng-dsp-admin
|
||||||
uri: http://dsp-admin:9014
|
uri: http://dsp-admin:9014
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue