Skip to content

Commit

Permalink
up media nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Sep 27, 2023
1 parent d24c853 commit 6c615da
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ services:
- "traefik.enable=true"
- "traefik.docker.network=${TRAEFIK_NETWORK_NAME}"

- "traefik.http.middlewares.${GEONATURE_FRONTEND_CONTAINER_NAME}-redirect.redirectregex.regex=^https://${GEONATURE_DOMAIN}/?$"
- "traefik.http.middlewares.${GEONATURE_FRONTEND_CONTAINER_NAME}-redirect.redirectregex.replacement=https://${GEONATURE_DOMAIN}/geonature/"
- "traefik.http.middlewares.${GEONATURE_FRONTEND_CONTAINER_NAME}-redirect.redirectregex.permanent=true"
- "traefik.http.middlewares.redirect_root_to_frontend.redirectregex.regex=^https://${GEONATURE_DOMAIN}/?$"
- "traefik.http.middlewares.redirect_root_to_frontend.redirectregex.replacement=https://${GEONATURE_DOMAIN}/geonature/"
- "traefik.http.middlewares.redirect_root_to_frontend.redirectregex.permanent=true"

- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-http.entrypoints=web"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-http.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`${GEONATURE_FRONTEND_PREFIX}`)"
Expand All @@ -256,22 +256,21 @@ services:

- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.entrypoints=websecure"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`${GEONATURE_FRONTEND_PREFIX}`)"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`${GEONATURE_BACKEND_PREFIX}/media/`)"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`/`)"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.tls=${TRAEFIK_TLS}"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.tls.certresolver=${TRAEFIK_RESOLVER}"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.middlewares=${GEONATURE_FRONTEND_CONTAINER_NAME}-redirect"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.middlewares=redirect_root_to_frontend"

- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.entrypoints=web"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`${GEONATURE_BACKEND_PREFIX}/media/`)"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.priority=2"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.middlewares=https-redirectscheme@file"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.priority=2"

- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.entrypoints=websecure"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`${GEONATURE_BACKEND_PREFIX}/media/`)"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.tls=${TRAEFIK_TLS}"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.tls.certresolver=${TRAEFIK_RESOLVER}"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.middlewares=${GEONATURE_FRONTEND_CONTAINER_NAME}-redirect"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.middlewares=redirect_root_to_frontend"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-https.priority=2"


Expand Down

0 comments on commit 6c615da

Please sign in to comment.