Compare commits

...

4 Commits

Author SHA1 Message Date
BeauTroll
e08e4657ef Add backend transport timeouts and Mailcow-specific transport
Configure default server transport with connection timeouts and add insecure transport for Mailcow backend with self-signed certificates.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-05 06:32:23 +01:00
BeauTroll
80d5dffd97 add responding timeouts 2026-01-05 06:26:06 +01:00
BeauTroll
22f8684f7e Enable access logs and log volume for Traefik
Add access log configuration to track incoming requests and mount logs directory as volume for persistent logging. This improves observability and debugging capabilities.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-22 09:36:16 +01:00
BeauTroll
42eb0058a1 Add file provider to Traefik for host-based services
Enable dual provider support (Docker + File) to allow routing both containerized services and services running on the host machine. Add dynamic.yml with routes for nginx-based websites (agence66.fr, walter-coiffure.fr) pointing to host gateway IP.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-22 08:34:38 +01:00
4 changed files with 47 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.env
acme.json
logs

View File

@@ -11,7 +11,9 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml:ro
- ./dynamic.yml:/etc/traefik/dynamic.yml:ro
- ./acme.json:/acme.json
- ./logs:/var/log/traefik
networks:
- traefik-net
labels:

23
dynamic.yml Normal file
View File

@@ -0,0 +1,23 @@
http:
routers:
walter-coiffure:
rule: "Host(`walter-coiffure.fr`) || Host(`www.walter-coiffure.fr`)"
entryPoints:
- websecure
service: nginx-host
tls:
certResolver: letsencrypt
agence66:
rule: "Host(`agence66.fr`) || Host(`www.agence66.fr`)"
entryPoints:
- websecure
service: nginx-host
tls:
certResolver: letsencrypt
services:
nginx-host:
loadBalancer:
servers:
- url: "http://172.19.0.1:8081"

View File

@@ -1,6 +1,9 @@
api:
dashboard: true
accessLog:
filePath: /var/log/traefik/access.log
entryPoints:
web:
address: ":80"
@@ -11,6 +14,11 @@ entryPoints:
scheme: https
websecure:
address: ":443"
transport:
respondingTimeouts:
readTimeout: "0" # Illimité pour uploads
writeTimeout: "0" # Illimité pour responses
idleTimeout: 180s # 3 minutes idle
certificatesResolvers:
letsencrypt:
@@ -24,3 +32,16 @@ providers:
docker:
exposedByDefault: false
network: traefik-net
file:
filename: /etc/traefik/dynamic.yml
watch: true
serversTransport:
forwardingTimeouts:
dialTimeout: 30s
responseHeaderTimeout: 0s
idleConnTimeout: 3600s
serversTransports:
mailcow-transport:
insecureSkipVerify: true