1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owncast-emojiwall_ynh.git synced 2024-09-03 19:56:19 +02:00

jalurnya diperbaiki

This commit is contained in:
Neko Nekowazarashi 2023-10-05 21:56:32 +07:00
parent dc138ffb26
commit b325058583
4 changed files with 15 additions and 4 deletions

View file

@ -1,9 +1,9 @@
{ {
"webhooks": { "webhooks": {
"host": "localhost", "host": "__DOMAIN__",
"prefix": "__PATH__", "prefix": "__CONF_PATH__",
"port": __PORT__, "port": __PORT__,
"public_port": 443, "public_port": 443,
"schema": "https" "schema": "https"
}, }
} }

View file

@ -7,7 +7,6 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__ WorkingDirectory=__INSTALL_DIR__
Environment="NODE_ENV=production"
ExecStart=__YNH_NODE__ index.js ExecStart=__YNH_NODE__ index.js
# Sandboxing options to harden security # Sandboxing options to harden security

View file

@ -20,6 +20,12 @@ ynh_setup_source -d "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
if [ "$path" = "/" ]; then
conf_path=""
else
conf_path=$path
fi
ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
npm --prefix "$install_dir" install npm --prefix "$install_dir" install

View file

@ -53,6 +53,12 @@ ynh_add_nginx_config
ynh_script_progression -m "Updating the configuration..." -w 1 ynh_script_progression -m "Updating the configuration..." -w 1
if [ "$path" = "/" ]; then
conf_path=""
else
conf_path=$path
fi
ynh_add_config -t default.json -d "$install_dir/config/default.json" ynh_add_config -t default.json -d "$install_dir/config/default.json"
yunohost service add $app --description="Web frontend for Urban Dictionary" --log="/var/log/$app/$app.log" yunohost service add $app --description="Web frontend for Urban Dictionary" --log="/var/log/$app/$app.log"