Caddyfile 1.0 KB

123456789101112131415161718192021222324252627282930
  1. {
  2. # LetsEncrypt account
  3. email YOUR_EMAIL
  4. }
  5. # Dashboard
  6. https://dashboard.NETMAKER_BASE_DOMAIN {
  7. # Apply basic security headers
  8. header {
  9. # Enable cross origin access to *.NETMAKER_BASE_DOMAIN
  10. Access-Control-Allow-Origin *.NETMAKER_BASE_DOMAIN
  11. # Enable HTTP Strict Transport Security (HSTS)
  12. Strict-Transport-Security "max-age=31536000;"
  13. # Enable cross-site filter (XSS) and tell browser to block detected attacks
  14. X-XSS-Protection "1; mode=block"
  15. # Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection)
  16. X-Frame-Options "SAMEORIGIN"
  17. # Prevent search engines from indexing
  18. X-Robots-Tag "none"
  19. # Remove the server name
  20. -Server
  21. }
  22. reverse_proxy http://netmaker-ui
  23. }
  24. # API
  25. https://api.NETMAKER_BASE_DOMAIN {
  26. reverse_proxy http://netmaker:8081
  27. }