dotfiles/.config/caddyfiles/hackclub.app.Caddyfile
Andrei Jiroh Halili d720f88a7b
adjust redirects for Nest Caddyfile config
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
2024-09-07 15:17:43 +00:00

28 lines
613 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
redir https://hackclub.wiki{uri}
}
http://hackclub.lorebooks.wiki {
bind unix/.hackclub.lorebooks.wiki.webserver.sock|777
redir https://hackclub.wiki{uri}
}
http://matrix.andreijiroh.dev {
bind unix/.matrix.andreijiroh.dev.webserver.sock|777
}