mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-10 00:59:38 +00:00
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:
parent
0658bee1be
commit
5123aa45ba
3 changed files with 40 additions and 0 deletions
23
.config/caddyfiles/hackclub.app.Caddyfile
Normal file
23
.config/caddyfiles/hackclub.app.Caddyfile
Normal 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}
|
||||||
|
}
|
11
.config/caddyfiles/p.psf.lt.Caddyfile
Normal file
11
.config/caddyfiles/p.psf.lt.Caddyfile
Normal 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
6
Caddyfile
Normal 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"
|
Loading…
Reference in a new issue