remove .env caddy conf and scripts

master
David Kebler 2023-04-04 07:01:45 -07:00
parent 711a1dfcdc
commit c52867afdd
10 changed files with 0 additions and 124 deletions

12
.env
View File

@ -1,12 +0,0 @@
# creditials required for route 53, this is package specific
# CREDENTIALS=/data/secure/aws-credentials.env
# will use Caddyfile unless CONF is set
# CONF=seldon
# default NAME is caddy
# NAME=caddy
# Will use dockerhub official base alpine image unless used here
# BASE_IMAGE=ucommandit/alpine
# will find src/ but setting this will speed it up
# BUILD_SRC=./src
# version is latest unless used here
# TAG=2.1.5

View File

@ -1,13 +0,0 @@
*.mydomain.net {
tls email@gmail.com {
dns route53 {
max_retries 10
}
}
@portainerr host docker.mydomain.net
handle @portainer {
reverse_proxy 10.0.0.5:9000
}
}

View File

@ -1,3 +0,0 @@
github.com/caddy-dns/route53
# comment lines are ignored thus a way to disable a package on build
# github.com/greenpau/caddy-security

View File

@ -1,13 +0,0 @@
*.mydomain.net {
tls email@gmail.com {
dns route53 {
max_retries 10
}
}
@portainerr host docker.mydomain.net
handle @portainer {
reverse_proxy 10.0.0.5:9000
}
}

View File

@ -1,3 +0,0 @@
github.com/caddy-dns/route53
# comment lines are ignored thus a way to disable a package on build
# github.com/greenpau/caddy-security

View File

@ -1,13 +0,0 @@
*.seldon.kebler.net {
tls kebler.net@gmail.com {
dns route53 {
max_retries 10
}
}
@docker host docker.seldon.kebler.net
handle @docker {
reverse_proxy seldon.kebler.net:9016
}
}

View File

@ -1,6 +0,0 @@
#!/bin/bash
export SCRIPTS_DIR="$(dirname $(realpath "${BASH_SOURCE:-$0}"))"
# echo arguments in entry $@
# execute the start script in a login shell so that the uci shell will be sourced
# see https://stackoverflow.com/a/1711985/4695378 passing $@
/bin/bash -l -c '${SCRIPTS_DIR}/start.sh $@' $0 "$@"

View File

@ -1,17 +0,0 @@
get_arch () {
local apkArch="$(apk --print-arch)"
case "$apkArch" in
x86_64) binArch='amd64' ;;
armhf) binArch='armv6' ;;
armv7) binArch='armv7' ;;
aarch64) binArch='arm64' ;;
ppc64el|ppc64le) binArch='ppc64le' ;;
s390x) binArch='s390x';;
*) return 1 ;;\
esac;
echo $binArch
}
(return 0 2>/dev/null) || get_arch $@

View File

@ -1,29 +0,0 @@
#!/bin/bash
export GITHUB_REPOS=https://api.github.com/repos
github_latest() {
local endpoint=$GITHUB_REPOS/$1/$2/releases/latest
local auth; local res
[[ $GITHUB_TOKEN ]] && auth="-u $GITHUB_USER:$GITHUB_TOKEN"
if ! res=$(curl $auth -s $endpoint); then
return 1
fi
echo $res| jq .name -r
}
github_asset () {
# user repo version asset
asset_url=$(curl -s "$GITHUB_REPOS/$1/$2/releases/tags/v$3" \
| jq --arg aname "$4" -r '.assets[] | select(.name == $aname).browser_download_url' \
| head -1)
if [ -z "${asset_url}" ]; then
return 1
fi
echo $asset_url
}

View File

@ -1,15 +0,0 @@
#!/bin/bash
# echo arguments in start script: "$@"
source /opt/caddy/caddy.env
case "$1" in
shell)
/bin/bash -c "cd $CADDY_HOME; exec bash -l"
;;
run)
shift 1
$CADDY_BIN run --config $CADDY_CONF/$1 --adapter caddyfile
;;
*)
$CADDY_BIN/caddy "$@"
esac