all repos — homestead @ b9ba39742d26359cd854a3477046da3377bb682e

Code for my website

try souin as caching reverse-proxy

Alan Pearce
commit

b9ba39742d26359cd854a3477046da3377bb682e

parent

8d68769bb817fbac3a3b67c455d2112af40450c5

1 file changed, 49 insertions(+), 0 deletions(-)

changed files
A souin/Caddyfile
@@ -0,0 +1,49 @@
+{ + acme_dns powerdns {env.POWERDNS_SERVER_URL} {env.POWERDNS_API_TOKEN} + http_port "{$SERVER_PORT}" + https_port "{$SERVER_TLS_PORT}" + cache { + ttl 1h + } + log { + format console + } + storage redis { + address "{$REDIS_ADDRESS}" + username "default" + password "{$REDIS_PASSWORD}" + encryption_key "{$REDIS_ENCRYPTION_KEY}" + key_prefix "certmagic" + tls_enabled true + tls_insecure false + } +} + +(rp_linde) { + route { + cache + header -Server + reverse_proxy https://linde.alanpearce.eu + } +} + +alanpearce.eu, +www.alanpearce.eu, +alanpearce.uk, +www.alanpearce.uk, +aln.pe, +www.aln.pe { + import rp_linde +} + +searchix.alanpearce.eu { + import rp_linde +} + +git.alanpearce.eu { + import rp_linde +} + +go.alanpearce.eu { + import rp_linde +}