Skip to content

Commit

Permalink
Merge pull request #775 from shimilgithub/api-refactor
Browse files Browse the repository at this point in the history
auth new image and changes in endpoint name
  • Loading branch information
shimilgithub authored Feb 15, 2024
2 parents 77f18c0 + 220b17a commit 138b09e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -244,7 +244,7 @@ def custom_openapi():
underlying Databases \and modules in Vachan-Engine. "
f"<br> • <a href=\"{root_url}/v2/text/translate/token-based/docs\" > Vachan-TBT docs </a>"
f"<br> • <a href=\"{root_url}/v2/cms/rest/docs\" > Vachan-CMS docs </a>"
f"<br> • <a href=\"{root_url}/v2/auth-access/docs\" > Vachan-Auth Access docs </a>"
f"<br> • <a href=\"{root_url}/v2/auth/docs\" > Vachan-Auth docs </a>"
),
routes=app.routes
)
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion docker/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion docker/nginx/prod/app.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 138b09e

Please sign in to comment.