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:
parent
dc138ffb26
commit
b325058583
4 changed files with 15 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"webhooks": {
|
||||
"host": "localhost",
|
||||
"prefix": "__PATH__",
|
||||
"host": "__DOMAIN__",
|
||||
"prefix": "__CONF_PATH__",
|
||||
"port": __PORT__,
|
||||
"public_port": 443,
|
||||
"schema": "https"
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__
|
||||
Environment="NODE_ENV=production"
|
||||
ExecStart=__YNH_NODE__ index.js
|
||||
|
||||
# Sandboxing options to harden security
|
||||
|
|
|
@ -20,6 +20,12 @@ ynh_setup_source -d "$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_use_nodejs
|
||||
npm --prefix "$install_dir" install
|
||||
|
|
|
@ -53,6 +53,12 @@ ynh_add_nginx_config
|
|||
|
||||
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"
|
||||
|
||||
yunohost service add $app --description="Web frontend for Urban Dictionary" --log="/var/log/$app/$app.log"
|
||||
|
|
Loading…
Reference in a new issue