add example.env and copy that to .env in install script

master
David Kebler 2024-04-10 10:53:00 -07:00
parent 0efd6a0b9e
commit 50e2144c20
3 changed files with 19 additions and 0 deletions

View File

@ -9,6 +9,7 @@ caddy_install () {
if /bin/cp -r -f $dir/caddy/* $target; then if /bin/cp -r -f $dir/caddy/* $target; then
pushd $target || return pushd $target || return
echo CADDY_DIR=$target >> .env echo CADDY_DIR=$target >> .env
cp example.env .env
source .env source .env
cp conf/example.conf conf/$CONF cp conf/example.conf conf/$CONF
./config ./config

View File

@ -0,0 +1,9 @@
# copy to .env and edit to suit
COMPOSE_PROJECT_NAME=caddy
# default NAME is caddy
NAME=${COMPOSE_PROJECT_NAME}
IMAGE=ucommandit/caddy-r53
CREDENTIALS=${DNS_CHALLENGE_CREDENTIALS:-$PWD/credentials.env}
# will use Caddyfile unless CONF is set
# this file should be in /conf on your host (e.g. my.conf)
CONF=$(hostnamectl hostname)

View File

@ -0,0 +1,9 @@
#default 9000, uncomment and set
# PORT=9005
# default 8000, uncomment and set
# EDGE_PORT=8005
# default is /opt/portainer/data
# DATA=/mnt/extra/containers/EDGE_PORT=8005
# DATA superceeds PORTAINER_DIR and this is set by install script