diff --git a/pyproject.toml b/pyproject.toml index 61214f0d4..3daa8a5f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "truss" -version = "0.9.31.dev-2" +version = "0.9.31.dev-3" description = "A seamless bridge from model development to model delivery" license = "MIT" readme = "README.md" diff --git a/truss/templates/docker_server/proxy.conf.jinja b/truss/templates/docker_server/proxy.conf.jinja index 144a76080..f8761e535 100644 --- a/truss/templates/docker_server/proxy.conf.jinja +++ b/truss/templates/docker_server/proxy.conf.jinja @@ -3,7 +3,7 @@ server { listen 8080; # Liveness - location / { + location = / { add_header Content-Type text/plain; return 200 ""; } @@ -28,4 +28,12 @@ server { proxy_pass http://127.0.0.1:{{server_port}}; } + # Forward all other paths + location / { + proxy_redirect off; + proxy_read_timeout 300s; + + proxy_pass http://127.0.0.1:{{server_port}}; + } + }