fly-apps/goatcounter/goatcounter.sh

22 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
set -e
declare OPTS=""
OPTS="$OPTS -automigrate"
OPTS="$OPTS -listen $GOATCOUNTER_LISTEN"
OPTS="$OPTS -tls none"
OPTS="$OPTS -email-from $GOATCOUNTER_EMAIL"
OPTS="$OPTS -db $GOATCOUNTER_DB"
if [ -n "$GOATCOUNTER_SMTP" ]; then
OPTS="$OPTS -smtp $GOATCOUNTER_SMTP"
fi
if [ -n "$GOATCOUNTER_DEBUG" ]; then
OPTS="$OPTS -debug all"
fi
goatcounter serve $OPTS