init
This commit is contained in:
48
Caddyfile
Normal file
48
Caddyfile
Normal file
@@ -0,0 +1,48 @@
|
||||
# Replace example.com with your domain or use localhost for local development
|
||||
# For production, uncomment and configure the email line with your email
|
||||
# and uncomment the tls line to enable automatic HTTPS
|
||||
|
||||
# Global settings
|
||||
{
|
||||
#email your-email@example.com
|
||||
#acme_ca https://acme-v02.api.letsencrypt.org/directory
|
||||
}
|
||||
|
||||
# Grafana
|
||||
grafana.example.com {
|
||||
#tls {
|
||||
# issuer acme
|
||||
#}
|
||||
reverse_proxy grafana:3000
|
||||
}
|
||||
|
||||
# Prometheus
|
||||
prometheus.example.com {
|
||||
#tls {
|
||||
# issuer acme
|
||||
#}
|
||||
reverse_proxy prometheus:9090
|
||||
}
|
||||
|
||||
# Node Exporter (if you want to expose it)
|
||||
# node-exporter.example.com {
|
||||
# tls {
|
||||
# issuer acme
|
||||
# }
|
||||
# reverse_proxy node-exporter:9100
|
||||
# }
|
||||
|
||||
# For local development without DNS
|
||||
localhost {
|
||||
handle_path /grafana/* {
|
||||
reverse_proxy grafana:3000
|
||||
}
|
||||
handle_path /prometheus/* {
|
||||
reverse_proxy prometheus:9090
|
||||
}
|
||||
# Uncomment if you want to expose node-exporter
|
||||
# handle_path /node-exporter/* {
|
||||
# reverse_proxy node-exporter:9100
|
||||
# }
|
||||
respond "Not Found" 404
|
||||
}
|
||||
Reference in New Issue
Block a user