diff --git a/client/nginx/default.conf b/client/nginx/default.conf index c664296..8e10fab 100644 --- a/client/nginx/default.conf +++ b/client/nginx/default.conf @@ -4,6 +4,7 @@ server { root /usr/share/nginx/html; index index.html; + resolver 127.0.0.11 ipv6=off; location = /healthz { access_log off; @@ -12,7 +13,9 @@ server { } location /api/ { - proxy_pass http://server:3000/; + set $backend http://server:3000; + rewrite ^/api/?(.*)$ /$1 break; + proxy_pass $backend; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;