fix(collabora): avoid default cert generation

This commit is contained in:
Alexandre
2025-08-28 10:02:24 +02:00
parent f08d2b9704
commit 2c7cd12a78
4 changed files with 32 additions and 3 deletions

View File

@@ -27,11 +27,23 @@ if bashio::config.has_value 'dictionaries'; then
export dictionaries
fi
extra_params=""
if bashio::config.has_value 'extra_params'; then
extra_params="$(bashio::config 'extra_params')"
export extra_params
fi
if bashio::config.true 'ssl'; then
bashio::config.require.ssl
certfile="$(bashio::config 'certfile')"
keyfile="$(bashio::config 'keyfile')"
export DONT_GEN_SSL_CERT=true
extra_params="${extra_params/--o:ssl.enable=false/}"
extra_params="${extra_params} --o:ssl.enable=true --o:ssl.termination=false --o:ssl.cert_file_path=/ssl/${certfile} \
--o:ssl.key_file_path=/ssl/${keyfile} --o:ssl.ca_file_path=/ssl/${certfile}"
fi
export extra_params
COOL_CONFIG="/etc/coolwsd/coolwsd.xml"
CONFIG_DEST="/config/coolwsd.xml"