Skip to content

Commit e900933

Browse files
committed
Bichon: add more env vars to default
1 parent 349b28d commit e900933

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

install/bichon-install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ setup_hwaccel
1616

1717
fetch_and_deploy_gh_release "bichon" "rustmailer/bichon" "prebuild" "latest" "/opt/bichon" "bichon-*-x86_64-unknown-linux-gnu.tar.gz"
1818
mkdir -p /opt/bichon-data
19+
BICHON_ENC_PASSWORD=$(openssl rand -base64 32 | tr -d "=+/" | cut -c1-32)
1920

2021
msg_info "Setting up Bichon"
2122
cat <<EOF >/opt/bichon/bichon.env
2223
BICHON_ROOT_DIR=/opt/bichon-data
2324
BICHON_LOG_LEVEL=info
25+
BICHON_ENCRYPT_PASSWORD=$BICHON_ENC_PASSWORD
26+
BICHON_PUBLIC_URL=http://${LOCAL_IP}:15630
27+
BICHON_CORS_ORIGINS=http://${LOCAL_IP}:15630
2428
EOF
2529
msg_ok "Setup Bichon"
2630

0 commit comments

Comments
 (0)