Commit initial : infrastructure Ansible pour homeserver
- Playbooks Ansible avec rôles (common, cockpit, docker, services) - 30+ stacks Docker Compose avec reverse proxy Traefik - Ansible Vault pour gestion secrets - Intégration CrowdSec pour détection intrusions - Versions images Docker fixées pour reproductibilité
This commit is contained in:
commit
fd01ea59ee
125 changed files with 4768 additions and 0 deletions
53
stacks/traefik/traefik-private.yml
Normal file
53
stacks/traefik/traefik-private.yml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
api:
|
||||
dashboard: true
|
||||
insecure: false
|
||||
|
||||
entryPoints:
|
||||
weblocal:
|
||||
address: ":80"
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: local
|
||||
scheme: https
|
||||
permanent: true
|
||||
|
||||
local:
|
||||
address: ":443"
|
||||
http:
|
||||
middlewares:
|
||||
- localonly@file
|
||||
|
||||
certificatesResolvers:
|
||||
cloudflare-local:
|
||||
acme:
|
||||
email: "mamaloubene@yahoo.fr"
|
||||
storage: /letsencrypt/cloudflare_acme.json
|
||||
caServer: "https://acme-v02.api.letsencrypt.org/directory"
|
||||
keyType: EC256
|
||||
dnsChallenge:
|
||||
provider: cloudflare
|
||||
resolvers:
|
||||
- "1.1.1.1:53"
|
||||
- "8.8.8.8:53"
|
||||
|
||||
log:
|
||||
level: DEBUG
|
||||
filePath: "/var/log/traefik-local/traefik.log"
|
||||
|
||||
accessLog:
|
||||
filePath: "/var/log/traefik-local/access.log"
|
||||
format: "json"
|
||||
|
||||
providers:
|
||||
docker:
|
||||
exposedByDefault: false
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
network: traefik_network
|
||||
watch: true
|
||||
file:
|
||||
directory: "/etc/traefik/dynamic"
|
||||
watch: true
|
||||
|
||||
serversTransport:
|
||||
insecureSkipVerify: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue