es-ukrtb/config/caddy/Caddyfile

56 lines
1.4 KiB
Caddyfile
Raw Normal View History

2024-01-30 11:46:58 +00:00
{
acme_dns cloudflare ...
2024-01-30 11:46:58 +00:00
}
*.es-ukrtb.ru, es-ukrtb.ru {
@main host es-ukrtb.ru
handle @main {
root * /srv/www
encode gzip
file_server
}
@mail host mail.es-ukrtb.ru
handle @mail {
reverse_proxy https://mail:443 {
transport http {
tls_insecure_skip_verify
}
}
}
@nextcloud host cloud.es-ukrtb.ru
handle @nextcloud {
reverse_proxy node-nextcloud:80
}
@git host git.es-ukrtb.ru
handle @git {
reverse_proxy gitea:3000
}
@ip host ip.es-ukrtb.ru
handle @ip {
templates
header Content-Type text/plain
respond "{{.RemoteIP}}"
}
@prometheus host prometheus.es-ukrtb.ru
handle @prometheus {
reverse_proxy prometheus:9090
}
@grafana host grafana.es-ukrtb.ru
handle @grafana {
reverse_proxy grafana:3000
}
@exporter host exporter.es-ukrtb.ru
handle @exporter {
reverse_proxy exporter:9100
}
@alertmanager host alertmanager.es-ukrtb.ru
handle @alertmanager {
reverse_proxy alertmanager:8080
}
}