This commit is contained in:
Nexus Admin 2024-11-19 19:48:16 +01:00
commit 111416c072
3 changed files with 39 additions and 0 deletions

6
caddy.container Normal file
View File

@ -0,0 +1,6 @@
[Container]
Image=docker.io/caddy:2.9.0-beta.3-alpine
Volume=%h/.config/containers/systemd/caddy/config:/etc/caddy:Z,ro
[Install]
WantedBy=multi-user.target default.target

12
caddy.socket Normal file
View File

@ -0,0 +1,12 @@
[Socket]
# fd/3
ListenStream=[::]:80
# fd/4
ListenStream=[::]:443
# fdgram/5
ListenDatagram=[::]:443
[Install]
WantedBy=sockets.target

21
config/Caddyfile Normal file
View File

@ -0,0 +1,21 @@
{
auto_https disable_redirects
admin off
}
http://nexus.plabble.org {
bind fd/3 {
protocols h1
}
respond "Can't get this!"
}
https://nexus.plabble.org {
bind fd/4 {
protocols h1 h2
}
bind fdgram/5 {
protocols h3
}
respond "Can't get this!"
}