mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 05:18:04 +00:00
Add traefik config files
https://github.com/chatmail/relay/pull/614#discussion_r2269887232
This commit is contained in:
12
traefik/post-hook.sh
Executable file
12
traefik/post-hook.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
CERTS_DIR=${CERTS_DIR:-"/data/letsencrypt/certs"}
|
||||
|
||||
for dir in "$CERTS_DIR"/*/; do
|
||||
cd "$dir"
|
||||
if [ -f "certificate.crt" ]; then
|
||||
ln -sf certificate.crt fullchain
|
||||
fi
|
||||
if [ -f "privatekey.key" ]; then
|
||||
ln -sf privatekey.key privkey
|
||||
fi
|
||||
cd -
|
||||
done
|
||||
Reference in New Issue
Block a user