1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiddlywiki_ynh.git synced 2024-09-03 20:26:34 +02:00
This commit is contained in:
ericgaspar 2021-02-16 18:56:52 +01:00
parent 23f57ae57f
commit c23b5e00b3
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location / {
# Force usage of https # Force usage of https
if ($scheme = http) { if ($scheme = http) {

View file

@ -14,5 +14,3 @@ Environment=NODE_ENV=production
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -98,7 +98,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
ynh_script_progression --message="tiddlywiki..." --weight=2 ynh_script_progression --message="tiddlywiki..." --weight=2
pushd $final_path pushd $final_path
$ynh_node $final_path/tiddlywiki monwiki --init server $nodejs_path/node $final_path/tiddlywiki monwiki --init server
popd popd
#================================================= #=================================================
@ -106,6 +106,8 @@ popd
#================================================= #=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1 ynh_script_progression --message="Configuring a systemd service..." --weight=1
ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file="../conf/systemd.service"
ynh_replace_string --match_string="__port__" --replace_string="$port" --target_file="../conf/systemd.service"
ynh_add_systemd_config ynh_add_systemd_config
#================================================= #=================================================