diff --git a/cluster.yml b/cluster.yml index 0cb07c1..b591b4d 100644 --- a/cluster.yml +++ b/cluster.yml @@ -17,6 +17,8 @@ services: - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq - REDIS_SERVER_HOST=onlyoffice-redis - REDIS_SERVER_PORT=6379 + - LETS_ENCRYPT_DOMAINS=none + - LETS_ENCRYPT_MAIL=none # Uncomment strings below to enable the JSON Web Token validation. #- JWT_ENABLED=true #- JWT_SECRET=secret diff --git a/run-document-server.sh b/run-document-server.sh index 8ee47c1..387cc4c 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -421,7 +421,7 @@ update_logrotate_settings(){ sed 's|\(^su\b\).*|\1 root root|' -i /etc/logrotate.conf } -modify_conf_templated(){ +modify_conf_templates(){ sed -i '$ d' ${NGINX_ONLYOFFICE_PATH}/ds.conf.tmpl cat >> ${NGINX_ONLYOFFICE_PATH}/ds.conf.tmpl < /var/log/le-start.log + + certbot certonly --expand --webroot -w ${ROOT_DIR} --noninteractive --agree-tos --email $LETS_ENCRYPT_MAIL $_domains > /var/log/le-new.log cp ${LETSENCRYPT_ROOT_DIR}/${args[0]}/fullchain.pem ${ROOT_DIR}/onlyoffice.crt cp ${LETSENCRYPT_ROOT_DIR}/${args[0]}/privkey.pem ${ROOT_DIR}/onlyoffice.key @@ -580,7 +582,7 @@ if [ ${PG_NEW_CLUSTER} = "true" ]; then create_postgresql_tbl fi -modify_conf_templated +modify_conf_templates if [ ${ONLYOFFICE_DATA_CONTAINER} != "true" ]; then waiting_for_db