Add grafana to Caddyfile and .env.example

This commit is contained in:
Aykhan Shahsuvarov 2025-04-11 00:49:59 +04:00
parent f89c69d17b
commit 36f3ae7d59
2 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,8 @@
############# Grafana #############
GRAFANA_DOMAIN=
GRAFANA_CRT=
GRAFANA_KEY=
############# Gitea ############# ############# Gitea #############
GITEA_DOMAIN= GITEA_DOMAIN=
GITEA_CRT= GITEA_CRT=

View File

@ -1,5 +1,28 @@
{ {
admin off admin off
metrics {
per_host
}
}
:2019 {
metrics
}
############## grafana ##############
{$GRAFANA_DOMAIN} {
tls /etc/ssl/custom/{$GRAFANA_CRT} /etc/ssl/custom/{$GRAFANA_KEY}
request_body {
max_size 2048MB
}
reverse_proxy http://grafana:3000 {
header_up X-Real-IP {http.request.header.Cf-Connecting-Ip}
header_up X-Forwarded-For {http.request.header.Cf-Connecting-Ip}
header_up X-Country-Code {http.request.header.Cf-Ipcountry}
header_up -CF-*
}
} }
############## gitea ############## ############## gitea ##############