From 220b17a3eb1613b16a2b030b3d3b7f1b0bb0de50 Mon Sep 17 00:00:00 2001 From: shimilgithub Date: Thu, 15 Feb 2024 10:33:42 +0530 Subject: [PATCH] auth new image and changes in endpoint name --- app/main.py | 4 ++-- docker/docker-compose.yml | 2 +- docker/nginx/default.conf | 2 +- docker/nginx/prod/app.conf.template | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main.py b/app/main.py index b9149e62..1ad09fe9 100644 --- a/app/main.py +++ b/app/main.py @@ -27,7 +27,7 @@ with the underlying Databases and modules in Vachan-Engine. \ \n • For Vachan-CMS docs: {root_url}/v2/cms/rest/docs,\ \n • For Vachan-TBT docs: {root_url}/v2/text/translate/token-based/docs,\ -\n • For Vachan-Auth Access docs: {root_url}/v2/auth-access/docs") +\n • For Vachan-Auth docs: {root_url}/v2/auth/docs") template = Jinja2Templates(directory="templates") app.mount("/static", StaticFiles(directory="static"), name="static") @@ -244,7 +244,7 @@ def custom_openapi(): underlying Databases \and modules in Vachan-Engine. " f"
Vachan-TBT docs " f"
Vachan-CMS docs " - f"
Vachan-Auth Access docs " + f"
Vachan-Auth docs " ), routes=app.routes ) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 35490943..7ad62cbc 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -307,7 +307,7 @@ services: - VE-network vachan-access: - image: shimilshijo/vachan-access:v2.0.2 + image: shimilshijo/vachan-access:v2.0.3 environment: - VACHAN_POSTGRES_HOST=vachan-db - VACHAN_POSTGRES_USER=${VACHAN_POSTGRES_USER:-postgres} diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 6f21c202..a85c8c46 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -19,7 +19,7 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } - location /v2/auth-access/ { + location /v2/auth/ { proxy_pass http://vachan-access:8007; } diff --git a/docker/nginx/prod/app.conf.template b/docker/nginx/prod/app.conf.template index 81689e70..26cdff76 100644 --- a/docker/nginx/prod/app.conf.template +++ b/docker/nginx/prod/app.conf.template @@ -36,7 +36,7 @@ server { ssl_certificate /etc/nginx/ssl/live/${VACHAN_DOMAIN}/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/live/${VACHAN_DOMAIN}/privkey.pem; - location /v2/auth-access/ { + location /v2/auth/ { proxy_pass http://vachan-access:8007; }