File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,17 @@ update_os
1515
1616fetch_and_deploy_gh_release " bichon" " rustmailer/bichon" " prebuild" " latest" " /opt/bichon" " bichon-*-x86_64-unknown-linux-gnu.tar.gz"
1717
18+ read -r -p " Enter the public URL for Bichon (e.g., https://bichon.yourdomain.com) or leave empty to use container IP: " bichon_url
19+ if [[ -z " $bichon_url " ]]; then
20+ msg_info " No URL provided"
21+ BICHON_PUBLIC_URL=" http://$LOCAL_IP :15630"
22+ msg_ok " using local IP: http://$LOCAL_IP :15630\n"
23+ else
24+ BICHON_PUBLIC_URL=" $bichon_url "
25+ msg_info " URL provided"
26+ msg_ok " Using provided URL: $BICHON_PUBLIC_URL \n"
27+ fi
28+
1829msg_info " Setting up Bichon"
1930mkdir -p /opt/bichon-data
2031BICHON_ENC_PASSWORD=$( openssl rand -base64 32 | tr -d " =+/" | cut -c1-32)
@@ -23,8 +34,8 @@ cat <<EOF >/opt/bichon/bichon.env
2334BICHON_ROOT_DIR=/opt/bichon-data
2435BICHON_LOG_LEVEL=info
2536BICHON_ENCRYPT_PASSWORD=$BICHON_ENC_PASSWORD
26- BICHON_PUBLIC_URL=http:// ${LOCAL_IP} :15630
27- BICHON_CORS_ORIGINS=http:// ${LOCAL_IP} :15630
37+ BICHON_PUBLIC_URL=$BICHON_PUBLIC_URL
38+ BICHON_CORS_ORIGINS=$BICHON_PUBLIC_URL
2839EOF
2940msg_ok " Setup Bichon"
3041
You can’t perform that action at this time.
0 commit comments