123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- server {
- listen 12099;
- listen [::]:12099;
- server_name localhost;
- server_tokens off;
- proxy_hide_header X-Powered-By;
- proxy_hide_header Server;
- # minio
- location /house-car/oss {
- proxy_pass http://192.168.10.7:19000;
- }
- # 百度地图
- location /dugis-baidu {
- proxy_pass http://192.168.10.7:19000;
- }
- # 不动产后端接口
- location /house-car/house/api {
- proxy_pass http://192.168.50.3:39100;
- }
- # 车辆后端接口
- location /house-car/car/api {
- proxy_pass http://192.168.50.3:39100;
- }
- # 不动产资源地图接口
- location /house-car/house/resource-map/api {
- proxy_pass http://192.168.50.3:39201;
- }
- # 不动产资源地图页面
- location /house-car/house/resource-map {
- rewrite ^/house-car/house/resource-map/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39201;
- }
- # 不动产报告页面接口
- location /house-car/house/report/api {
- proxy_pass http://192.168.50.3:39202;
- }
- # 不动产报告页面
- location /house-car/house/report {
- rewrite ^/house-car/house/report/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39202;
- }
- # 车辆报告页面接口
- location /house-car/car/report/api {
- proxy_pass http://192.168.50.3:39203;
- }
- # 车辆报告报告页面
- location /house-car/car/report {
- rewrite ^/house-car/car/report/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39203;
- }
- # 车辆资源地图接口
- location /house-car/car/resource-map/api {
- proxy_pass http://192.168.50.3:39204;
- }
- # 车辆资源地图页面
- location /house-car/car/resource-map {
- rewrite ^/house-car/car/resource-map/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39204;
- }
- # 不动产数据稽查页面接口
- location /house-car/house/DATA-CHECK/api {
- proxy_pass http://192.168.50.3:39205;
- }
- # 不动产数据稽查页面
- location /house-car/house/DATA-CHECK {
- rewrite ^/house-car/house/DATA-CHECK/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39205;
- }
- # 不动产数据稽查页面接口
- location /house-car/house/data-check/api {
- proxy_pass http://192.168.50.3:39205;
- }
- # 不动产数据稽查页面
- location /house-car/house/data-check {
- rewrite ^/house-car/house/data-check/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39205;
- }
- # 不动产gdc接口
- location /house-car/house/dist/api {
- proxy_pass http://192.168.50.3:39101;
- }
- # 不动产gdc页面
- location /house-car/house/dist {
- rewrite ^/house-car/house/dist/(.*)$ /$1 break;
- proxy_pass http://192.168.50.3:39206;
- }
- #车辆系统
- 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;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- }
|