Advertisement
tmsteinhardt

Traefik Config.yml

May 13th, 2025 (edited)
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. http:
  2. middlewares:
  3. default-security-headers:
  4. headers:
  5. customBrowserXSSValue: 0 # X-XSS-Protecti>
  6. contentTypeNosniff: true # X-Content-Type-O>
  7. forceSTSHeader: true # Add the Strict-T>
  8. frameDeny: false # X-Frame-Options>
  9. referrerPolicy: "strict-origin-when-cross-origin"
  10. stsIncludeSubdomains: true # Add includeSubdo>
  11. stsPreload: true # Add preload flag>
  12. stsSeconds: 3153600 # Set the max-age o>
  13. contentSecurityPolicy: "default-src 'self'"
  14. customRequestHeaders:
  15. X-Forwarded-Proto: https
  16. https-redirectscheme:
  17. redirectScheme:
  18. scheme: https
  19. permanent: true
  20. routers:
  21. homeassistant:
  22. entryPoints:
  23. - "https"
  24. rule: "Host(`homeassistant.mydomain.com`)"
  25. tls: {}
  26. service: homeassistant
  27. frigate:
  28. entryPoints:
  29. - "https"
  30. rule: "Host(`frigate.mydomain.com`)"
  31. tls: {}
  32. service: frigate
  33. services:
  34. homeassistant:
  35. loadBalancer:
  36. servers:
  37. - url: "http://homeassistant-ip:8123"
  38. passHostHeader: true
  39. frigate:
  40. loadBalancer:
  41. servers:
  42. - url: "http://frigate-ip:8971"
  43. passHostHeader: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement