Skip to content

Commit

Permalink
Catch all proxy pass
Browse files Browse the repository at this point in the history
  • Loading branch information
bolasim committed Aug 24, 2024
1 parent 5d39e6f commit 6b38251
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 9 additions & 1 deletion truss/templates/docker_server/proxy.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server {
listen 8080;

# Liveness
location / {
location = / {
add_header Content-Type text/plain;
return 200 "";
}
Expand All @@ -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}};
}

}

0 comments on commit 6b38251

Please sign in to comment.