From f2ee198a015ded39acce9a816e5126b010ab699e Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 9 Apr 2024 20:10:53 +0300 Subject: [PATCH] add docker hub --- app/main.py | 2 +- docker/nginx/nginx.conf | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/main.py b/app/main.py index a0de567..fb4cd26 100644 --- a/app/main.py +++ b/app/main.py @@ -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 diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index c3ad2a6..c3ba149 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -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;