Skip to content

Commit

Permalink
Obsoleted Traefik error pages. Did not spend anymore time on it and d…
Browse files Browse the repository at this point in the history
…on't see the value in doing so.

Added TLS options. Changed HostHeader to Host rule.
Added Host rule to certain services (auth bypass)
Added GZIP compression middleware
Upgrading Traefik from cheverotin (2.2.x) to 2.3.x (picodin)
  • Loading branch information
SimpleHomelab committed Oct 6, 2020
1 parent e4c034e commit e215262
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 73 deletions.
23 changes: 23 additions & 0 deletions docker-compose-t2-obsolete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,3 +420,26 @@ services:
- SYSTEM=0
- TASKS=1 # Portaienr
- VOLUMES=1 # Portainer

# Traefik - Custom Error Pages
# Obsoleted because I did not spend any more time on it to customize and don't see the value
traefik-error-pages:
container_name: traefik-error-pages
image: guillaumebriday/traefik-custom-error-pages
restart: unless-stopped
networks:
- t2_proxy
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.traefik-error-pages-rtr.entrypoints=https"
- "traefik.http.routers.traefik-error-pages-rtr.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.traefik-error-pages-rtr.priority=1"
# Middlewares
- "traefik.http.routers.traefik-error-pages-rtr.middlewares=traefik-error-pages"
- "traefik.http.middlewares.traefik-error-pages.errors.service=traefik-error-pages-svc"
- "traefik.http.middlewares.traefik-error-pages.errors.status=401,403,404,429,500,502,503"
- "traefik.http.middlewares.traefik-error-pages.errors.query=/{status}.html"
# HTTP Services
- "traefik.http.routers.traefik-error-pages-rtr.service=traefik-error-pages-svc"
- "traefik.http.services.traefik-error-pages-svc.loadbalancer.server.port=80"
Loading

0 comments on commit e215262

Please sign in to comment.