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 f1f64d1 commit d96cef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions assets/geonature/media.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ server {
listen ${NGINX_PORT};
server_name ${NGINX_HOST};

if ($request_uri ~ "^[^?]*?//") {
rewrite "^" $scheme://$host$uri permanent;
}

location ${NGINX_LOCATION} {
alias /usr/share/nginx/html/;
index index.html index.htm;
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ services:
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-https.priority=1"

- "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.rule=Host(`${GEONATURE_DOMAIN}`) && PathPrefix(`${GEONATURE_BACKEND_PREFIX}//?media/`)"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.middlewares=https-redirectscheme@file"
- "traefik.http.routers.${GEONATURE_FRONTEND_CONTAINER_NAME}-media-http.priority=3"

- "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.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=redirect_root_to_frontend"
Expand Down

0 comments on commit d96cef7

Please sign in to comment.