mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
e9675343a1
* NM-241: add metrics secret to install script * NM-241: add install directory, download grafana files * NM-241: update exporter setup * NM-241: update exporter env vars * NM-241: update volume * NM-241: update promethues and grafana volumes * NM-241: remove caddy domain for prom * NM-241: rm graph grafana dashboard * NM-241: add container name to prom and grafana * NM-241: avoid creating new sub install folders
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
# Dashboard
|
|
https://dashboard.{$NM_DOMAIN} {
|
|
# Apply basic security headers
|
|
header {
|
|
# Enable cross origin access to *.{$NM_DOMAIN}
|
|
Access-Control-Allow-Origin *.{$NM_DOMAIN}
|
|
# Enable HTTP Strict Transport Security (HSTS)
|
|
Strict-Transport-Security "max-age=31536000;"
|
|
# Enable cross-site filter (XSS) and tell browser to block detected attacks
|
|
X-XSS-Protection "1; mode=block"
|
|
# Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection)
|
|
X-Frame-Options "SAMEORIGIN"
|
|
# Prevent search engines from indexing
|
|
X-Robots-Tag "none"
|
|
# Remove the server name
|
|
-Server
|
|
}
|
|
|
|
reverse_proxy http://netmaker-ui
|
|
}
|
|
|
|
# Netmaker Exporter
|
|
https://netmaker-exporter.{$NM_DOMAIN} {
|
|
reverse_proxy http://netmaker-exporter:8085
|
|
}
|
|
|
|
# Prometheus
|
|
# https://prometheus.{$NM_DOMAIN} {
|
|
# reverse_proxy http://prometheus:9090
|
|
# }
|
|
|
|
# Grafana
|
|
https://grafana.{$NM_DOMAIN} {
|
|
reverse_proxy http://grafana:3000
|
|
}
|
|
|
|
# API
|
|
https://api.{$NM_DOMAIN} {
|
|
reverse_proxy http://netmaker:8081
|
|
}
|
|
|
|
# MQ
|
|
broker.{$NM_DOMAIN} {
|
|
@ws {
|
|
header Connection *Upgrade*
|
|
header Upgrade websocket
|
|
}
|
|
reverse_proxy @ws mq:8883
|
|
}
|
|
|
|
# GRPC
|
|
# https://grpc.{$NM_DOMAIN} {
|
|
# reverse_proxy netmaker-exporter:50051 {
|
|
# transport http {
|
|
# versions h2c
|
|
# }
|
|
# }
|
|
# }
|