feat: docker configuration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -e "/etc/Caddyfile" ]; then
|
||||
sed -i "s#%%DOMAIN%%#${DOMAIN:-localhost}#g" /etc/Caddyfile.tpl
|
||||
sed -i "s#%%LOGLEVEL%%#${LOGLEVEL:-INFO}#g" /etc/Caddyfile.tpl
|
||||
sed -i "s#%%LOGFORMAT%%#${LOGFORMAT:-json}#g" /etc/Caddyfile.tpl
|
||||
mv /etc/Caddyfile.tpl /etc/Caddyfile
|
||||
else
|
||||
rm -f /etc/Caddyfile.tpl
|
||||
fi
|
||||
|
||||
exec caddy run --config /etc/Caddyfile
|
||||
Reference in New Issue
Block a user