This commit is contained in:
parent
e4826b7760
commit
cf80d780bf
|
|
@ -0,0 +1,40 @@
|
||||||
|
server
|
||||||
|
{
|
||||||
|
listen 80;
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name ${DSP_DOMAIN};
|
||||||
|
root /data/dsp_admin_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 /api {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
{
|
{
|
||||||
listen 80;
|
listen 80;
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name ${AIRPORT_DOMAIN};
|
server_name ${HHZ_DOMAIN};
|
||||||
root /data/tuoheng_airport_web/dist;
|
root /data/tuoheng_hhz_web/dist;
|
||||||
|
|
||||||
# SSL证书配置
|
# SSL证书配置
|
||||||
ssl_certificate /etc/nginx/t-aaron.com.pem;
|
ssl_certificate /etc/nginx/t-aaron.com.pem;
|
||||||
|
|
@ -24,27 +24,31 @@
|
||||||
location /{
|
location /{
|
||||||
try_files $uri $uri/ @router;
|
try_files $uri $uri/ @router;
|
||||||
index index.html;
|
index index.html;
|
||||||
proxy_redirect http://${AIRPORT_DOMAIN} https://${AIRPORT_DOMAIN_FULL};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location @router{
|
location @router{
|
||||||
rewrite ^.*$ /index.html last;
|
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 {
|
location /permission {
|
||||||
proxy_pass http://airportService/permission;
|
proxy_pass http://${HHZ_ADMIN_NAME}:9055;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /wxapp {
|
||||||
|
proxy_pass http://${HHZ_API_NAME}:9056/api;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /hhz {
|
||||||
|
proxy_pass http://gatewayService/hhz;
|
||||||
|
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