mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-10-10 00:12:37 +02:00
@@ -1,4 +1,4 @@
|
|||||||
http://%%DOMAIN%% {
|
:80 {
|
||||||
root * /var/www/html
|
root * /var/www/html
|
||||||
file_server
|
file_server
|
||||||
|
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -e "/etc/Caddyfile" ]; then
|
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#%%LOGLEVEL%%#${LOGLEVEL:-INFO}#g" /etc/Caddyfile.tpl
|
||||||
sed -i "s#%%LOGFORMAT%%#${LOGFORMAT:-json}#g" /etc/Caddyfile.tpl
|
sed -i "s#%%LOGFORMAT%%#${LOGFORMAT:-json}#g" /etc/Caddyfile.tpl
|
||||||
mv /etc/Caddyfile.tpl /etc/Caddyfile
|
mv /etc/Caddyfile.tpl /etc/Caddyfile
|
||||||
@@ -9,7 +8,7 @@ else
|
|||||||
rm -f /etc/Caddyfile.tpl
|
rm -f /etc/Caddyfile.tpl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting UI: http://${DOMAIN:-localhost}"
|
echo "Starting UI on port 80"
|
||||||
echo "Logs output: ${LOGLEVEL:-INFO} (${LOGFORMAT:-json})"
|
echo "Logs output: ${LOGLEVEL:-INFO} (${LOGFORMAT:-json})"
|
||||||
|
|
||||||
exec caddy run --config /etc/Caddyfile
|
exec caddy run --config /etc/Caddyfile
|
||||||
|
Reference in New Issue
Block a user