add back in missing env files

master
David Kebler 2023-09-15 10:29:48 -07:00
parent 40a01fa781
commit 4bfc39f9ee
6 changed files with 36 additions and 0 deletions

7
deploy/example.env Normal file
View File

@ -0,0 +1,7 @@
# copy to .env and edit to suit
COMPOSE_PROJECT_NAME=mydoc
# default NAME is caddy
NAME=$COMPOSE_PROJECT_NAME
DOC_NAME=$NAME
# to use a deployed image
IMAGE=ucommandit/doc

3
src/init/build.env Normal file
View File

@ -0,0 +1,3 @@
export BUILD_NAME=doc
[ -f "$ENV_DIR/run.env" ] && source $ENV_DIR/run.env
echo $USER set

6
src/rootfs/opt/env/caddy.env vendored Normal file
View File

@ -0,0 +1,6 @@
export CADDY_HOME=${CADDY_HOME:-/opt/caddy}
export XDG_CONFIG_HOME=$CADDY_HOME/settings
export XDG_DATA_HOME=$CADDY_HOME/data
export CADDY_CONF=$CADDY_HOME/conf
export CADDY_BIN=/usr/sbin/caddy
export CADDY_LIB=$LIB_DIR/caddy.lib

8
src/rootfs/opt/env/editor.env vendored Normal file
View File

@ -0,0 +1,8 @@
export EDITOR_HOME=/opt/editor
export EDITOR_REP0=coder/code-server
export EDITOR_SRC=/usr/local/lib/code-server
export EDITOR_BIN=$EDITOR_SRC/bin/code-server
export EDITOR_CONFIG_TMPL=$DOC_HOME/editor/editor.tmpl.yml
export EDITOR_CONFIG=$EDITOR_HOME/editor.yml
export EDITOR_EXTENSIONS=$DOC_HOME/editor/extensions
export EDITOR_DATA=$DOC_HOME/editor/data

11
src/rootfs/opt/env/run.env vendored Normal file
View File

@ -0,0 +1,11 @@
# will be sourced when "login" action is run via /etc/profile
# set these to customize the "custom" entrypoint command
export ENTRYPOINT_CMD=doc
export ENTRYPOINT_CMD_PATH=$BIN_DIR/doc
export USER=doc
export DOC_HOME=/doc
export DEFAULT_DIR=$DOC_HOME
export DOC_NAME=${DOC_NAME:-"Doc name set with DOC_NAME"}
source $ENV_DIR/runit.env
source $ENV_DIR/caddy.env
source $ENV_DIR/editor.env

1
src/rootfs/opt/env/runit.env vendored Normal file
View File

@ -0,0 +1 @@
export SVDIR=/opt/services