Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Update docker-compose.prod.yml to redirect to thesis-track (#652)
Browse files Browse the repository at this point in the history
* Update docker-compose.prod.yml to redirect to thesis-track

* Add new env to deployment
  • Loading branch information
robertjndw authored Aug 12, 2024
1 parent d19bb14 commit ab0cbdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ jobs:
echo "SERVER_HOST=${{ vars.SERVER_HOST }}" >> .env.prod
echo "CLIENT_HOST=${{ vars.CLIENT_HOST }}" >> .env.prod
echo "THESIS_HOST=${{ vars.THESIS_HOST }}" >> .env.prod
echo "KEYCLOAK_HOST=${{ vars.KEYCLOAK_HOST }}" >> .env.prod
echo "KEYCLOAK_ISSUER_URI=${{ vars.KEYCLOAK_HOST }}/realms/${{ vars.KEYCLOAK_REALM_NAME }}" >> .env.prod
echo "KEYCLOAK_JWK_SET_URI=${{ vars.KEYCLOAK_HOST }}/realms/${{ vars.KEYCLOAK_REALM_NAME }}/protocol/openid-connect/certs" >> .env.prod
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ services:
- "traefik.http.routers.client.entrypoints=websecure"
- "traefik.http.routers.client.tls.certresolver=letsencrypt"
- "traefik.http.middlewares.client-compress.compress=true"
- "traefik.http.routers.client.middlewares=client-compress"
- "traefik.http.middlewares.redirect-to-thesis-track.redirectregex.regex=^https?://[^/]+/(applications/thesis|management/thesis-applications)(.*)"
- "traefik.http.middlewares.redirect-to-thesis-track.redirectregex.replacement=${THESIS_HOST}/$$1"
- "traefik.http.routers.client.middlewares=client-compress,redirect-to-thesis-track"
expose:
- "80"
depends_on:
Expand Down

0 comments on commit ab0cbdb

Please sign in to comment.