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;