dotfiles/.config/caddyfiles/hackclub.app.Caddyfile
Andrei Jiroh Halili 5123aa45ba chore(caddyfiles): add caddyfile userspace configs
I did some import magic to keep the main Caddyfile at parent
directory clean.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
2024-08-27 17:41:31 +00:00

23 lines
No EOL
537 B
Caddyfile

# Caddyfile configuration for Hack Club Nest
http://ajhalili2006.hackclub.app {
bind unix/.webserver.sock|777
handle * {
redir https://andreijiroh.xyz{uri}
}
handle /things/* {
redir https://cdn.andreijiroh.xyz/{uri}
encode gzip
}
}
# Custom domains
http://hackclub.beta.lorebooks.wiki {
bind unix/.hackclub.beta.lorebooks.wiki.webserver.sock|777
# Add your Caddy directives here!
}
http://hackclub.lorebooks.wiki {
bind unix/.hackclub.lorebooks.wiki.webserver.sock|777
redir https://hackclub.beta.lorebooks.wiki{uri}
}