Caddyfile-EE 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. # ZeroSSL account
  3. acme_ca https://acme.zerossl.com/v2/DV90
  4. email YOUR_EMAIL
  5. }
  6. # Dashboard
  7. https://dashboard.NETMAKER_BASE_DOMAIN {
  8. # Apply basic security headers
  9. header {
  10. # Enable cross origin access to *.NETMAKER_BASE_DOMAIN
  11. Access-Control-Allow-Origin *.NETMAKER_BASE_DOMAIN
  12. # Enable HTTP Strict Transport Security (HSTS)
  13. Strict-Transport-Security "max-age=31536000;"
  14. # Enable cross-site filter (XSS) and tell browser to block detected attacks
  15. X-XSS-Protection "1; mode=block"
  16. # Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection)
  17. X-Frame-Options "SAMEORIGIN"
  18. # Prevent search engines from indexing
  19. X-Robots-Tag "none"
  20. # Remove the server name
  21. -Server
  22. }
  23. reverse_proxy http://netmaker-ui
  24. }
  25. # Netmaker Exporter
  26. https://netmaker-exporter.NETMAKER_BASE_DOMAIN {
  27. reverse_proxy http://netmaker-exporter:8085
  28. }
  29. # Prometheus
  30. https://prometheus.NETMAKER_BASE_DOMAIN {
  31. reverse_proxy http://prometheus:9090
  32. }
  33. # Grafana
  34. https://grafana.NETMAKER_BASE_DOMAIN {
  35. reverse_proxy http://grafana:3000
  36. }
  37. # API
  38. https://api.NETMAKER_BASE_DOMAIN {
  39. reverse_proxy http://netmaker:8081
  40. }
  41. # STUN
  42. https://stun.NETMAKER_BASE_DOMAIN {
  43. reverse_proxy netmaker:3478
  44. }
  45. # MQ
  46. wss://broker.NETMAKER_BASE_DOMAIN {
  47. reverse_proxy ws://mq:8883
  48. }