cleanup; Readme still in WIP

This commit is contained in:
Philip Henning 2025-07-26 00:08:06 +02:00
parent 321acaf85d
commit e356e4cf16
6 changed files with 17 additions and 252 deletions

View file

@ -1,12 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
cd "$(dirname "$(realpath "$0")")/../"
lego \
--path ./data/.lego \
--email="acme@base23.de" \
--domains="*.base23.de" \
--dns hetzner \
renew \
--renew-hook="./scripts/cert_renew_hook.sh"

View file

@ -1,8 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
cd "$(dirname "$(realpath "$0")")/../"
install -m 400 -o 101 -g 101 "./data/.lego/certificates"/{_.base23.de.crt,_.base23.de.issuer.crt,_.base23.de.key} "./data/nginx/certs"
docker compose restart nginx

View file

@ -11,20 +11,11 @@ STAGE="${1:-}"
shift || true
if [[ -z "${STAGE,,}" ]]; then
echo "Usage: $0 <prod|test>"
echo "Usage: $0 <stage>"
echo "Example: $0 test"
exit 1
fi
if [[ "${STAGE,,}" == "prod" ]]; then
DOCKER_COMPOSE_CLI="docker compose"
elif [[ "${STAGE,,}" == "test" ]]; then
DOCKER_COMPOSE_CLI="docker-compose-2.32.4"
else
echo "Invalid stage: ${STAGE,,}. Use 'prod' or 'test'."
exit 1
fi
cd "$(dirname "$(realpath "$0")")/../"
AUTHENTIK_DOCKER_COMPOSE_PATH="$(realpath "$(pwd)")"