|
@@ -0,0 +1,208 @@
|
|
|
|
+server {
|
|
|
|
+ listen 8000 ssl;
|
|
|
|
+ listen [::]:8000 ssl;
|
|
|
|
+ server_name localhost;
|
|
|
|
+
|
|
|
|
+ ssl_certificate ssl/server.crt;
|
|
|
|
+ ssl_certificate_key ssl/server.key;
|
|
|
|
+ ssl_session_timeout 1h;
|
|
|
|
+ ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256';
|
|
|
|
+ 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
|
|
|
|
+ location /house-car/oss {
|
|
|
|
+ proxy_pass http://172.16.107.4:39000;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 百度地图
|
|
|
|
+ location /dugis-baidu/baidumap/jsapi {
|
|
|
|
+ proxy_pass http://172.16.107.4:39000/house-car/oss/public/dugis-baidu/baidumap/jsapi;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产后端接口
|
|
|
|
+ location /house-car/house/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 车辆后端接口
|
|
|
|
+ location /house-car/car/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产资源地图接口
|
|
|
|
+ location /house-car/house/resource-map/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产资源地图页面
|
|
|
|
+ location /house-car/house/resource-map {
|
|
|
|
+ rewrite ^/house-car/house/resource-map/(.*)$ /$1 break;
|
|
|
|
+ proxy_pass http://172.16.107.4:39201;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产报告页面接口
|
|
|
|
+ location /house-car/house/report/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产报告页面
|
|
|
|
+ location /house-car/house/report {
|
|
|
|
+ rewrite ^/house-car/house/report/(.*)$ /$1 break;
|
|
|
|
+ proxy_pass http://172.16.107.4:39202;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 车辆报告页面接口
|
|
|
|
+ location /house-car/car/report/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 车辆报告报告页面
|
|
|
|
+ location /house-car/car/report {
|
|
|
|
+ rewrite ^/house-car/car/report/(.*)$ /$1 break;
|
|
|
|
+ proxy_pass http://172.16.107.4:39203;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 车辆资源地图接口
|
|
|
|
+ location /house-car/car/resource-map/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 车辆资源地图页面
|
|
|
|
+ location /house-car/car/resource-map {
|
|
|
|
+ rewrite ^/house-car/car/resource-map/(.*)$ /$1 break;
|
|
|
|
+ proxy_pass http://172.16.107.4:39204;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产数据稽查页面接口
|
|
|
|
+ location /house-car/house/DATA-CHECK/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产数据稽查页面
|
|
|
|
+ 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:39100;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产数据稽查页面
|
|
|
|
+ location /house-car/house/data-check {
|
|
|
|
+ rewrite ^/house-car/house/data-check/(.*)$ /$1 break;
|
|
|
|
+ proxy_pass http://172.16.107.4:39205;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产gdc接口
|
|
|
|
+ location /house-car/house/dist/api {
|
|
|
|
+ proxy_pass http://172.16.107.4:39101;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # 不动产gdc页面
|
|
|
|
+ location /house-car/house/dist {
|
|
|
|
+ rewrite ^/house-car/house/dist/(.*)$ /$1 break;
|
|
|
|
+ proxy_pass http://172.16.107.4: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://172.16.107.4:8080/;
|
|
|
|
+ access_by_lua_file lua/access.lua;
|
|
|
|
+ body_filter_by_lua_file lua/body_filter.lua;
|
|
|
|
+ log_by_lua_file lua/log.lua;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ 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://172.16.107.4:8080/assets/;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ location /assets/ {
|
|
|
|
+ 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://172.16.107.4: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;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # proxy the PHP scripts to Apache listening on 172.16.107.4:80
|
|
|
|
+ #
|
|
|
|
+ #location ~ \.php$ {
|
|
|
|
+ # proxy_pass http://172.16.107.4;
|
|
|
|
+ #}
|
|
|
|
+
|
|
|
|
+ # pass the PHP scripts to FastCGI server listening on 172.16.107.4:9000
|
|
|
|
+ #
|
|
|
|
+ #location ~ \.php$ {
|
|
|
|
+ # root html;
|
|
|
|
+ # fastcgi_pass 172.16.107.4:9000;
|
|
|
|
+ # fastcgi_index index.php;
|
|
|
|
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
|
|
|
+ # include fastcgi_params;
|
|
|
|
+ #}
|
|
|
|
+
|
|
|
|
+ # deny access to .htaccess files, if Apache's document root
|
|
|
|
+ # concurs with nginx's one
|
|
|
|
+ #
|
|
|
|
+ #location ~ /\.ht {
|
|
|
|
+ # deny all;
|
|
|
|
+ #}
|
|
|
|
+}
|