Traefik Middleware aktualisiert
@@ -1,3 +1,5 @@
|
||||
How to add a honeypod to your Traefik:
|
||||
|
||||
```
|
||||
services:
|
||||
traefik:
|
||||
@@ -18,13 +20,13 @@ services:
|
||||
- "traefik.http.routers.phpapp.entrypoints=web"
|
||||
- "traefik.http.services.phpapp.loadbalancer.server.port=80"
|
||||
|
||||
# Pfadbasierte Route für /admin mit ForwardAuth
|
||||
# Path based Route for /admin with ForwardAuth
|
||||
- "traefik.http.routers.phpapp-admin.rule=Host(`yourdomain.local`) && PathPrefix(`/admin`)"
|
||||
- "traefik.http.routers.phpapp-admin.entrypoints=web"
|
||||
- "traefik.http.routers.phpapp-admin.service=phpapp"
|
||||
- "traefik.http.routers.phpapp-admin.middlewares=ipcheck@docker"
|
||||
|
||||
# ForwardAuth Middleware
|
||||
- "traefik.http.middlewares.ipcheck.forwardauth.address=http://ipchecker:8080/traefik"
|
||||
- "traefik.http.middlewares.ipcheck.forwardauth.address=https://flod.sendnrw.de/traefik"
|
||||
- "traefik.http.middlewares.ipcheck.forwardauth.trustforwardheader=true"
|
||||
```
|
Reference in New Issue
Block a user