diff --git a/docker-compose/setup-script/noco.sh b/docker-compose/setup-script/noco.sh index 7c869d7a1f..49d08e187f 100755 --- a/docker-compose/setup-script/noco.sh +++ b/docker-compose/setup-script/noco.sh @@ -267,7 +267,7 @@ add_to_hosts() { local TEMP_HOSTS_FILE="/tmp/hosts.tmp" - if is_valid_domain "CONFIG_MINIO_DOMAIN_NAME"; then + if is_valid_domain $CONFIG_MINIO_DOMAIN_NAME; then return 0 elif sudo grep -q "${CONFIG_MINIO_DOMAIN_NAME}" "$HOSTS_FILE"; then return 0 @@ -574,7 +574,7 @@ EOF fi # If SSL is enabled we need to add the following lines to the traefik service - if [ "$CONFIG_SSL_ENABLED" = "Y" ]; then + if [ "$CONFIG_SSL_ENABLED" = "Y" ] || [ "$CONFIG_MINIO_SSL_ENABLED" = "Y" ]; then cat >> "$compose_file" <> "$compose_file" <> "$compose_file" <> "$env_file" + elif is_valid_domain "$CONFIG_MINIO_DOMAIN_NAME"; then + echo "NC_S3_ENDPOINT=http://${CONFIG_MINIO_DOMAIN_NAME}" >> "$env_file" else echo "NC_S3_ENDPOINT=http://${CONFIG_MINIO_DOMAIN_NAME}:9000" >> "$env_file" fi