diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-03-09 17:31:21 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-03-09 18:46:54 +0800 |
commit | ac7c3e0ab3b460a5a96df04496e6f310ef9572d0 (patch) | |
tree | 712d9f164db7623498a97b3778e2322c5d4a9752 /services/docker/nginx/nginx-wrapper.bash | |
parent | 4915c92a8ff30439676cb328864acab050538f37 (diff) | |
download | crupest-ac7c3e0ab3b460a5a96df04496e6f310ef9572d0.tar.gz crupest-ac7c3e0ab3b460a5a96df04496e6f310ef9572d0.tar.bz2 crupest-ac7c3e0ab3b460a5a96df04496e6f310ef9572d0.zip |
feat(service): mv config to docker imagei, better pri/pub git.
Diffstat (limited to 'services/docker/nginx/nginx-wrapper.bash')
-rwxr-xr-x | services/docker/nginx/nginx-wrapper.bash | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/services/docker/nginx/nginx-wrapper.bash b/services/docker/nginx/nginx-wrapper.bash index bd566aa..c848287 100755 --- a/services/docker/nginx/nginx-wrapper.bash +++ b/services/docker/nginx/nginx-wrapper.bash @@ -1,7 +1,16 @@ #!/usr/bin/bash -set -e +set -e -o pipefail + +die() { + echo "$@" >&2 + exit 1 +} + +[[ -n "$CRUPEST_DOMAIN" ]] || die "CRUPEST_DOMAIN is not set. It is used as root domain." +[[ -n "$CRUPEST_GITHUB" ]] || die "CRUPEST_GITHUB is not set. It is used as GitHub redirection." +[[ -n "$CRUPEST_V2RAY_PATH" ]] || die "CRUPEST_V2RAY_PATH is not set. It is used as v2ray tunnel endpoint." /app/certbot.bash & -nginx "-g" "daemon off;" +/docker-entrypoint.sh nginx "-g" "daemon off;" |