Browse Source

fix: error return with localhost of 1601 port's root query

master
dnomd343 3 years ago
parent
commit
52fe4de2fd
  1. 4
      conf/docker/ip.conf
  2. 4
      conf/nginx/ip.conf

4
conf/docker/ip.conf

@ -24,9 +24,9 @@ server {
} }
location = / { location = / {
set $query_param ?justip=true&cli=true; proxy_set_header X-Real-IP $remote_addr;
if ($http_user_agent ~* (curl|wget)) { if ($http_user_agent ~* (curl|wget)) {
proxy_pass http://$my_host/query$query_param; proxy_pass http://$my_host/query?justip=true&cli=true;
} }
index index.html; index index.html;
} }

4
conf/nginx/ip.conf

@ -60,9 +60,9 @@ server {
} }
location = / { location = / {
set $query_param ?justip=true&cli=true; proxy_set_header X-Real-IP $remote_addr;
if ($http_user_agent ~* (curl|wget)) { if ($http_user_agent ~* (curl|wget)) {
proxy_pass http://$my_host/query$query_param; proxy_pass http://$my_host/query?justip=true&cli=true;
} }
index index.html; index index.html;
} }

Loading…
Cancel
Save