diff --git a/utils/docker-compose-ingress/nginx/templates/nginx.conf.template b/utils/docker-compose-ingress/nginx/templates/nginx.conf.template index e7093d8b7..c17b3f4c5 100644 --- a/utils/docker-compose-ingress/nginx/templates/nginx.conf.template +++ b/utils/docker-compose-ingress/nginx/templates/nginx.conf.template @@ -113,6 +113,12 @@ http { proxy_set_header Connection "upgrade"; } + + location ~* ^/((metrics)|(api/health)|(api/heap)) { + resolver 127.0.0.11 valid=30s; + return 301 /; + } + location ~* ^/(graphql|explorer|(auth/.*)|(objects/.*)|(preview/.*)|(api/.*)|(static/.*)) { resolver 127.0.0.11 valid=30s; set $upstream_speckle_server speckle-server; @@ -128,11 +134,6 @@ http { proxy_set_header Connection "upgrade"; } - location ~* ^/((metrics)|(api/health)|(api/heap)) { - resolver 127.0.0.11 valid=30s; - return 301 / - } - error_page 500 502 503 504 /50x.html; location = /50x.html {