mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-04-21 07:09:46 +00:00
Add grafana to Caddyfile and .env.example
This commit is contained in:
parent
f89c69d17b
commit
36f3ae7d59
@ -1,3 +1,8 @@
|
||||
############# Grafana #############
|
||||
GRAFANA_DOMAIN=
|
||||
GRAFANA_CRT=
|
||||
GRAFANA_KEY=
|
||||
|
||||
############# Gitea #############
|
||||
GITEA_DOMAIN=
|
||||
GITEA_CRT=
|
||||
|
@ -1,5 +1,28 @@
|
||||
{
|
||||
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 ##############
|
||||
|
Loading…
x
Reference in New Issue
Block a user