Skip to content

Commit

Permalink
add docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan committed Apr 9, 2024
1 parent 09c0605 commit f2ee198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def do_predict(request: Request, body: InferenceInput):
)


@app.get("/about")
@app.get("/api/v1/about")
def show_about():
"""
Get deployment information, for debugging
Expand Down
8 changes: 1 addition & 7 deletions docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location ~ /about/ {
proxy_pass http://docker_fastapi;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
Expand Down

0 comments on commit f2ee198

Please sign in to comment.