Commit c3331fdc authored by Kunkka王辉's avatar Kunkka王辉 😲

feat: 修复

parent 105cb987
...@@ -256,14 +256,21 @@ server { ...@@ -256,14 +256,21 @@ server {
proxy_set_header X-Ngnix-Proxy true; proxy_set_header X-Ngnix-Proxy true;
} }
location ^~ /smarterApi/ { #这里一段非常恶心,建议统一整理规划一下
#test.smartwhale.galaxy-immi.com 最终还是转发到galaxy_crm location ^~ /smarterApi/ {
rewrite ^/smarterApi/(.*)$ /api/\$1 last; rewrite ^/smarterApi/(.*)$ /api/\$1 last;
proxy_pass http://$HOST:$GALAXY_CRM_API_HTTP_PORT; proxy_pass http://$HOST:$GALAXY_CRM_API_HTTP_PORT;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Real-Ip \$remote_addr; proxy_set_header X-Real-Ip \$remote_addr;
proxy_set_header X-Ngnix-Proxy true; proxy_set_header X-Ngnix-Proxy true;
} }
location ^~ /api/smarterApi/ {
rewrite ^/api/smarterApi/(.*)$ /api/\$1 last;
proxy_pass http://$HOST:$GALAXY_CRM_API_HTTP_PORT;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Ngnix-Proxy true;
}
location ^~ /earlyWarning/smartWhale/api/ { location ^~ /earlyWarning/smartWhale/api/ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment