mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-03 03:31:09 +02:00
Update init-letsencrypt.sh (#1380)
Add ability to accept a `.ev.nginx` configuration that lists a subdomain.
This commit is contained in:
parent
8b10535c93
commit
b6d0ecec4f
@ -21,7 +21,13 @@ docker_compose_cmd() {
|
|||||||
# Assign appropriate Docker Compose command
|
# Assign appropriate Docker Compose command
|
||||||
COMPOSE_CMD=$(docker_compose_cmd)
|
COMPOSE_CMD=$(docker_compose_cmd)
|
||||||
|
|
||||||
domains=("$DOMAIN" "www.$DOMAIN")
|
# Only add www to domain list if domain wasn't explicitly set as a subdomain
|
||||||
|
if [[ ! $DOMAIN == www.* ]]; then
|
||||||
|
domains=("$DOMAIN" "www.$DOMAIN")
|
||||||
|
else
|
||||||
|
domains=("$DOMAIN")
|
||||||
|
fi
|
||||||
|
|
||||||
rsa_key_size=4096
|
rsa_key_size=4096
|
||||||
data_path="../data/certbot"
|
data_path="../data/certbot"
|
||||||
email="$EMAIL" # Adding a valid address is strongly recommended
|
email="$EMAIL" # Adding a valid address is strongly recommended
|
||||||
|
Loading…
x
Reference in New Issue
Block a user