# Traefik Dynamic Configuration http: middlewares: # Security Headers Middleware secure-headers: headers: sslRedirect: true stsSeconds: 31536000 stsIncludeSubdomains: true stsPreload: true forceSTSHeader: true frameDeny: true contentTypeNosniff: true browserXssFilter: true # Rate Limiting Middleware rate-limit: rateLimit: average: 100 burst: 50 period: 1s routers: # Exists only to obtain the XMPP certificate (ejabberd on services); # role xmpp_cert_sync pushes it there on every renewal. No traffic # reaches it: these names point at services. asxp.io is pushed from # the site's own certificate. xmpp-cert: rule: "Host(`{{ xmpp_cert_main }}`)" entryPoints: [websecure] priority: 1 service: noop@internal tls: certResolver: letsencrypt domains: - main: {{ xmpp_cert_main }} sans: {{ xmpp_cert_sans | to_json }}