Caddyfile-pro 1.1 KB

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