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>
This commit is contained in:
Andrei Jiroh Halili 2024-08-27 17:41:31 +00:00
parent 0658bee1be
commit 5123aa45ba
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# 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}
}

View file

@ -0,0 +1,11 @@
# Caddyfile configuration for p.psf.lt
http://ajhalili2006.p.projectsegfau.lt {
bind unix/.webserver.sock|777
handle * {
redir https://andreijiroh.xyz{uri}
}
handle /things/* {
redir https://cdn.andreijiroh.xyz/{uri}
encode gzip
}
}

6
Caddyfile Normal file
View file

@ -0,0 +1,6 @@
{
admin unix//home/ajhalili2006/.caddy-admin.sock
}
import "./.config/caddyfiles/p.psf.lt.Caddyfile"
import "./.config/caddyfiles/hackclub.app.Caddyfile"