From b60237693fec3eeeda05b626c9f061faac3fdad9 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Fri, 18 Aug 2023 23:39:16 -0400 Subject: [PATCH] Expose swaggerui and redoc endpoints --- backend/main.py | 2 +- docker/nginx/default.conf | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 03d7e3b3c..7cf95527c 100644 --- a/backend/main.py +++ b/backend/main.py @@ -18,7 +18,7 @@ from utils.auth import ( create_default_admin_user, ) -app = FastAPI() +app = FastAPI(title="RomM API", version="0.1.0") app.add_middleware( CORSMiddleware, diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 7900f643c..ea273a323 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -42,6 +42,13 @@ http { proxy_redirect off; } + location /docs { + proxy_pass http://localhost:5000/docs; + } + location /redoc { + proxy_pass http://localhost:5000/redoc; + } + # Backend api calls location /api { rewrite /api/(.*) /$1 break;