This commit is contained in:
pika 2025-03-24 17:51:57 +01:00
parent a4ce8a291d
commit 950d72aba1
8 changed files with 375 additions and 22 deletions

13
.env.example Normal file
View file

@ -0,0 +1,13 @@
# API key for authentication between server and agents
API_KEY=your_secure_random_key_here
# Server mode configurations
DEBUG_MODE=false
CADDYFILE_PATH=/path/to/local/Caddyfile # Only needed in LOCAL_MODE
# Agent mode configurations
CADDYFILE_PATH=/opt/docker/caddy/conf/Caddyfile
DASHBOARD_URL=https://dashboard.example.com/api/update
# or DASHBOARD_URL=http://caddydb-server:5000/api/update
# SERVER_NAME=my-caddy-server # Optional - defaults to hostname
CHECK_INTERVAL=60 # Seconds between checks