cleanup; Readme still in WIP
This commit is contained in:
parent
321acaf85d
commit
e356e4cf16
6 changed files with 17 additions and 252 deletions
|
@ -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"
|
|
@ -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
|
|
@ -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)")"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue