Files
sonr/config/caddy/Caddyfile
T

44 lines
740 B
Caddyfile
Raw Normal View History

2024-09-19 02:04:22 -04:00
{
2024-09-26 15:58:49 -04:00
# Global options
email team@sonr.id
}
# Services exposed via Cloudflare Tunnel
:1323 {
reverse_proxy localhost:1323
}
:1317 {
reverse_proxy localhost:1317
}
:9090 {
reverse_proxy localhost:9091
}
:26657 {
reverse_proxy localhost:26657
2024-09-19 02:04:22 -04:00
}
vault.sonr.id {
2024-09-26 15:58:49 -04:00
# Since vault.sonr.id has specific configurations, we can specify the hostname
2024-09-19 02:04:22 -04:00
2024-09-26 15:58:49 -04:00
reverse_proxy localhost:8080
2024-09-19 02:04:22 -04:00
2024-09-26 15:58:49 -04:00
@vault path_regexp vaultPath ^/([a-z0-9]{42})(/.*|)$
2024-09-19 02:04:22 -04:00
2024-09-26 15:58:49 -04:00
handle @vault {
uri replace /{re.vaultPath.0} /ipns/{re.vaultPath.1}{re.vaultPath.2}
reverse_proxy localhost:8080
}
2024-09-19 02:04:22 -04:00
2024-09-26 15:58:49 -04:00
file_server
2024-09-19 02:04:22 -04:00
2024-09-26 15:58:49 -04:00
header {
Content-Type .wasm application/wasm
Service-Worker-Allowed "/"
}
2024-09-19 02:04:22 -04:00
2024-09-26 15:58:49 -04:00
encode zstd gzip
2024-09-19 02:04:22 -04:00
}