|
@@ -10,7 +10,10 @@ server {
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
server_tokens off;
|
|
|
+ proxy_hide_header X-Powered-By;
|
|
|
|
|
|
+ proxy_hide_header Server;
|
|
|
+ #add_header X-Frame-Options SAMEORIGIN;
|
|
|
#access_log /var/log/nginx/host.access.log main;
|
|
|
|
|
|
# minio
|
|
@@ -62,10 +65,63 @@ server {
|
|
|
proxy_pass http://172.16.107.4:39204;
|
|
|
}
|
|
|
|
|
|
+ # 不动产数据稽查页面接口
|
|
|
+ location /house-car/house/DATA-CHECK/api {
|
|
|
+ proxy_pass http://172.16.107.4:39205;
|
|
|
+ }
|
|
|
+
|
|
|
+ # 不动产数据稽查页面
|
|
|
+ location /house-car/house/DATA-CHECK {
|
|
|
+ rewrite ^/house-car/house/DATA-CHECK/(.*)$ /$1 break;
|
|
|
+ proxy_pass http://172.16.107.4:39205;
|
|
|
+ }
|
|
|
+
|
|
|
+ # 不动产数据稽查页面接口
|
|
|
+ location /house-car/house/data-check/api {
|
|
|
+ proxy_pass http://172.16.107.4:39205;
|
|
|
+ }
|
|
|
+
|
|
|
+ # 不动产数据稽查页面
|
|
|
+ location /house-car/house/data-check {
|
|
|
+ rewrite ^/house-car/house/data-check/(.*)$ /$1 break;
|
|
|
+ proxy_pass http://172.16.107.4:39205;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
# 不动产系统
|
|
|
location /house-car/house/dist/ {
|
|
|
proxy_pass http://172.16.107.4:39089/house/dist/;
|
|
|
}
|
|
|
+ location /house-car/house/api/ {
|
|
|
+ proxy_pass http://172.16.107.4:39089/house/api/;
|
|
|
+ }
|
|
|
+
|
|
|
+ #车辆系统
|
|
|
+ location /house-car/car/ {
|
|
|
+ proxy_redirect off;
|
|
|
+ proxy_set_header Host $host:$server_port;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_pass https://127.0.0.1:8080/;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /house-car/car/assets/ {
|
|
|
+ # add_header Access-Control-Allow-Origin '*' always;
|
|
|
+ # add_header Access-Control-Allow-Headers '*';
|
|
|
+ # add_header Access-Control-Allow-Methods '*';
|
|
|
+ # add_header Access-Control-Allow-Credentials 'false';
|
|
|
+ # if ($request_method = 'OPTIONS') {
|
|
|
+ # return 204;
|
|
|
+ # }
|
|
|
+ proxy_redirect off;
|
|
|
+ proxy_set_header Host $host:$server_port;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_pass https://127.0.0.1:8080/assets/;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
#error_page 404 /404.html;
|
|
|
|
|
@@ -98,4 +154,4 @@ server {
|
|
|
#location ~ /\.ht {
|
|
|
# deny all;
|
|
|
#}
|
|
|
-}
|
|
|
+}
|