mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-09-18 15:57:45 -04:00
🗃️ Committing everything that changed 🗃️
applications/ configs/ lists/ wwwroot/
This commit is contained in:
6
applications/caddy/scripts/commands.sh
Normal file
6
applications/caddy/scripts/commands.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
EXEC_CMD_BIN="caddy" # command to execute
|
||||
EXEC_CMD_ARGS="run --config $ETC_DIR/Caddyfile" # command arguments
|
||||
|
||||
[ -d "$WWW_DIR/health" ] || mkdir -p "$WWW_DIR/health"
|
||||
[ -f "$WWW_DIR/health/index.txt" ] || echo 'ok' >"$WWW_DIR/health/index.txt"
|
||||
[ -f "$WWW_DIR/health/index.json" ] || echo '{ "status": "ok" }' >"$WWW_DIR/health/index.json"
|
10
applications/caddy/scripts/install.sh
Normal file
10
applications/caddy/scripts/install.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
version=$(curl -q -LSsf "https://api.github.com/repos/caddyserver/caddy/releases/latest" | grep .tag_name | sed 's|.*: ||g;s|"||g;s|,||g')
|
||||
export version XCADDY_SETCAP=1 GO111MODULE=auto
|
||||
echo ">>>>>>>>>>>>>>> ${version} ###############"
|
||||
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest || exit 10
|
||||
xcaddy build ${version} \
|
||||
--output /usr/local/bin/caddy \
|
||||
--with github.com/caddy-dns/rfc2136 \
|
||||
--with github.com/caddy-dns/cloudflare \
|
||||
--with github.com/caddyserver/nginx-adapter \
|
||||
--with github.com/hairyhenderson/caddy-teapot-module
|
1
applications/caddy/scripts/packages.sh
Normal file
1
applications/caddy/scripts/packages.sh
Normal file
@@ -0,0 +1 @@
|
||||
curl libcap
|
Reference in New Issue
Block a user