dotfiles/.config/caddyfiles/hackclub.app.Caddyfile

29 lines
613 B
Text
Raw Normal View History

# 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
}