mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 12:45:17 +02:00
fix Django Admin with traefik
This commit is contained in:
parent
4de6fa675f
commit
c11395cbd6
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.adventurelogweb.entrypoints=websecure"
|
- "traefik.http.routers.adventurelogweb.entrypoints=websecure"
|
||||||
- "traefik.http.routers.adventurelogweb.rule=Host(`yourdomain.com`) && !PathPrefix(`/media`)" # Replace with your domain
|
- "traefik.http.routers.adventurelogweb.rule=Host(`yourdomain.com`) && !(PathPrefix(`/media`) || PathPrefix(`/admin`) || PathPrefix(`/static`))" # Replace with your domain
|
||||||
- "traefik.http.routers.adventurelogweb.tls=true"
|
- "traefik.http.routers.adventurelogweb.tls=true"
|
||||||
- "traefik.http.routers.adventurelogweb.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.adventurelogweb.tls.certresolver=letsencrypt"
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.adventurelogserver.entrypoints=websecure"
|
- "traefik.http.routers.adventurelogserver.entrypoints=websecure"
|
||||||
- "traefik.http.routers.adventurelogserver.rule=Host(`yourdomain.com`) && PathPrefix(`/media`)" # Replace with your domain
|
- "traefik.http.routers.adventurelogserver.rule=Host(`yourdomain.com`) && && (PathPrefix(`/media`) || PathPrefix(`/admin`) || PathPrefix(`/static`))" # Replace with your domain
|
||||||
- "traefik.http.routers.adventurelogserver.tls=true"
|
- "traefik.http.routers.adventurelogserver.tls=true"
|
||||||
- "traefik.http.routers.adventurelogserver.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.adventurelogserver.tls.certresolver=letsencrypt"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue