maj conf traefik pour allowip
This commit is contained in:
parent
2cae3a6ae3
commit
1dd2858922
@ -1,3 +1,5 @@
|
||||
#garnir le fichier (enlever le 0.0.0.0/0 pour admin par exemple) et le placer
|
||||
#dans /conf
|
||||
http:
|
||||
middlewares:
|
||||
ipwhitelist:
|
@ -20,7 +20,7 @@ services:
|
||||
- TRAEFIK_ENTRYPOINTS_web_HTTP_REDIRECTIONS_ENTRYPOINT_TO=websecure
|
||||
- TRAEFIK_ENTRYPOINTS_websecure_ADDRESS=:443
|
||||
- TRAEFIK_ENTRYPOINTS_websecure_HTTP_TLS_CERTRESOLVER=letsencrypt
|
||||
- TRAEFIK_ENTRYPOINTS_websecure_HTTP_MIDDLEWARES=hsts@file,test-ipwhitelist@file
|
||||
- TRAEFIK_ENTRYPOINTS_websecure_HTTP_MIDDLEWARES=hsts@file,test-ipallowlist@file
|
||||
- TRAEFIK_CERTIFICATESRESOLVERS_letsencrypt_ACME_EMAIL=admin@${domain}
|
||||
- TRAEFIK_CERTIFICATESRESOLVERS_letsencrypt_ACME_CASERVER=${acme_server}
|
||||
- TRAEFIK_CERTIFICATESRESOLVERS_letsencrypt_ACME_STORAGE=/letsencrypt/acme.json
|
||||
@ -35,7 +35,7 @@ services:
|
||||
- "traefik.http.routers.traefik_https.rule=Host(`${site}.${domain}`)"
|
||||
- "traefik.http.routers.traefik_https.entrypoints=websecure"
|
||||
- "traefik.http.routers.traefik_https.service=api@internal"
|
||||
- "traefik.http.routers.traefik_https.middlewares=test-adminipwhitelist@file,traefik-auth"
|
||||
- "traefik.http.routers.traefik_https.middlewares=test-adminipallowlist@file,traefik-auth"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.usersfile=/etc/traefik/passfile"
|
||||
|
||||
networks:
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Do nothing
|
||||
# Théoriquement traefik gère tout seul sauf les changements dans le traefik.yml
|
Loading…
Reference in New Issue
Block a user