lore-forge/deploy/lore-forge.caddy

17 lines
512 B
Plaintext

# lore-forge behind Caddy, written by deploy/install.sh and imported from /etc/caddy/Caddyfile.
@HOST@ {
tls {
# Let's Encrypt with a P-256 key, so lore-forge-certs finds the certificate in
# CADDY_CERTIFICATES and loreserver can read the key.
issuer acme {
@EMAIL@
}
key_type p256
}
# HTTP/2 without TLS to lore-forge, so gRPC (Lore's user directory and registry) passes
# through with the pages. Streams are flushed as they come.
reverse_proxy h2c://127.0.0.1:8080 {
flush_interval -1
}
}