diff --git a/config/docker/nginx.conf b/config/docker/nginx.conf index 1cb4901f..b76b7175 100644 --- a/config/docker/nginx.conf +++ b/config/docker/nginx.conf @@ -24,6 +24,12 @@ server { location ~* .+\.(css|js|html|png|jpe?g|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) { try_files $uri $uri/ =404; } + + # servers.json may be on the root, or in it's own directory (ie, mounting a volume in Cattle) + location = /servers.json { + try_files /servers.json /conf.d/servers.json; + } + # When requesting a path without extension, try it, and return the index if not found # This allows HTML5 history paths to be handled by the client application location / {