Skip to content

Commit

Permalink
fix fooocus regex middleware name
Browse files Browse the repository at this point in the history
apply middleware

apply to https not http smh
  • Loading branch information
LegitCamper committed Mar 16, 2024
1 parent 7f728b7 commit a8acdf2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ services:
environment:
- VENV_PATH=/workspace/venvs/fooocus
labels:
# define regex middleware
- "traefik.http.middlewares.fooocus-redirectregex.redirectregex.regex=^/*.*/log.html"
- "traefik.http.middlewares.fooocus-redirectregex.redirectregex.replacement=/"

- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.fooocus.entrypoints=http"
Expand All @@ -43,8 +47,7 @@ services:
- "traefik.http.routers.fooocus-secure.tls=true"
- "traefik.http.routers.fooocus-secure.tls.certresolver=${DNS}"
- "traefik.http.routers.fooocus-secure.middlewares=forward-auth"
- "traefik.http.middlewares.fooocus-redirectregex.redirectregex.regex=^/*.*/log.html"
- "traefik.http.middlewares.fooocus-redirectregex.redirectregex.replacement=/"
- "traefik.http.routers.fooocus-secure.middlewares=fooocus-redirectregex"
deploy:
resources:
reservations:
Expand Down

0 comments on commit a8acdf2

Please sign in to comment.