diff --git a/conf/systemd.service b/conf/systemd.service index 13145cf..adea29e 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ Environment="PATH=__ENV_PATH__" -ExecStart=__FINALPATH__/./bin/dendrite-monolith-server --tls-cert=server.crt --tls-key=server.key --config=dentrite.yaml >> /var/log/__APP__/__APP__.log 2>&1 +ExecStart=__FINALPATH__/./bin/dendrite-monolith-server --tls-cert=server.crt --tls-key=server.key --config=dentrite.yaml --http-bind-address=:__PORT__ --https-bind-address=:__TLS_PORT__ >> /var/log/__APP__/__APP__.log 2>&1 [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index eebcfef..fb8ec3f 100755 --- a/scripts/install +++ b/scripts/install @@ -148,7 +148,7 @@ ynh_add_config --template="../conf/dendrite.yaml" --destination="$final_path/den ynh_script_progression --message="Configuring a systemd service..." --time --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --others_var="port tls_port" #================================================= # STORE THE CONFIG FILE CHECKSUM