Caddyfile-EE 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # Netmaker Exporter
  25. https://netmaker-exporter.NETMAKER_BASE_DOMAIN {
  26. reverse_proxy http://netmaker-exporter:8085
  27. }
  28. # Prometheus
  29. https://prometheus.NETMAKER_BASE_DOMAIN {
  30. reverse_proxy http://prometheus:9090
  31. }
  32. # Grafana
  33. https://grafana.NETMAKER_BASE_DOMAIN {
  34. reverse_proxy http://grafana:3000
  35. }
  36. # API
  37. https://api.NETMAKER_BASE_DOMAIN {
  38. reverse_proxy http://netmaker:8081
  39. }
  40. # STUN
  41. https://stun.NETMAKER_BASE_DOMAIN {
  42. reverse_proxy netmaker:3478
  43. }
  44. # MQ
  45. wss://broker.NETMAKER_BASE_DOMAIN {
  46. reverse_proxy ws://mq:8883
  47. }