Initial caddy skill
This commit is contained in:
13
scripts/run.sh
Normal file
13
scripts/run.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
CADDYFILE_PATH="${CADDYFILE_PATH:-/skills/caddy/Caddyfile}"
|
||||
CADDY_DATA_DIR="${CADDY_DATA_DIR:-/data/caddy}"
|
||||
|
||||
if [ ! -f "$CADDYFILE_PATH" ]; then
|
||||
echo "Error: Caddyfile not found at $CADDYFILE_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting Caddy with config: $CADDYFILE_PATH"
|
||||
exec caddy run --config "$CADDYFILE_PATH" --adapter caddyfile
|
||||
Reference in New Issue
Block a user