Skip to content

Commit

Permalink
fix fooocus regex middleware name
Browse files Browse the repository at this point in the history
apply middleware
  • Loading branch information
LegitCamper committed Mar 16, 2024
1 parent 7f728b7 commit 1d33b7b
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,20 +31,23 @@ 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"
- "traefik.http.routers.fooocus.rule=Host(`fooocus.${DOMAIN}`)"
- "traefik.http.middlewares.fooocus-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.fooocus.middlewares=fooocus-https-redirect"
- "traefik.http.routers.fooocus.middlewares=fooocus-redirectregex"
- "traefik.http.routers.fooocus-secure.entrypoints=https"
- "traefik.http.routers.fooocus-secure.rule=Host(`fooocus.${DOMAIN}`)"
- "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=/"
deploy:
resources:
reservations:
Expand Down

0 comments on commit 1d33b7b

Please sign in to comment.