init
This commit is contained in:
commit
111416c072
6
caddy.container
Normal file
6
caddy.container
Normal 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
12
caddy.socket
Normal 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
21
config/Caddyfile
Normal 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!"
|
||||
}
|
Loading…
Reference in New Issue
Block a user