diff --git a/.config/caddyfiles/hackclub.app.Caddyfile b/.config/caddyfiles/hackclub.app.Caddyfile new file mode 100644 index 0000000..f55c07a --- /dev/null +++ b/.config/caddyfiles/hackclub.app.Caddyfile @@ -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} +} \ No newline at end of file diff --git a/.config/caddyfiles/p.psf.lt.Caddyfile b/.config/caddyfiles/p.psf.lt.Caddyfile new file mode 100644 index 0000000..20a7b08 --- /dev/null +++ b/.config/caddyfiles/p.psf.lt.Caddyfile @@ -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 + } +} diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..0fa4d3e --- /dev/null +++ b/Caddyfile @@ -0,0 +1,6 @@ +{ + admin unix//home/ajhalili2006/.caddy-admin.sock +} + +import "./.config/caddyfiles/p.psf.lt.Caddyfile" +import "./.config/caddyfiles/hackclub.app.Caddyfile"