63 lines
1.6 KiB
Caddyfile
63 lines
1.6 KiB
Caddyfile
|
{
|
||
|
acme_dns cloudflare d7fWGzIMmzGfgGddSSzG8OtjpCTFLy4YcQS88-Co
|
||
|
}
|
||
|
|
||
|
*.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}}"
|
||
|
}
|
||
|
|
||
|
# @pf {
|
||
|
# host pf.es.ukrtb.ru
|
||
|
# remote_ip 192.168.0.0/16 10.0.0.0/8 127.0.0.0/8 172.16.0.0/12
|
||
|
# }
|
||
|
# handle @pf {
|
||
|
# reverse_proxy 172.16.0.1:8080
|
||
|
# }
|
||
|
@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
|
||
|
}
|
||
|
|
||
|
}
|