diff --git a/conf/nginx.conf b/conf/nginx.conf index 4899948..19cfa5b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,5 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; - location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -15,8 +14,6 @@ location ~ ^/(css|img|js|fonts)/ { # expires 12M; } - - location __PATH__/ { proxy_pass http://localhost:__PORT__/; diff --git a/scripts/backup b/scripts/backup index 5db9479..e35094e 100755 --- a/scripts/backup +++ b/scripts/backup @@ -8,6 +8,7 @@ source ../settings/scripts/_common.sh source ../settings/scripts/detect_arch +source ../settings/scripts/ynh_systemd_action source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/install b/scripts/install index cf25ee1..c40b5d9 100755 --- a/scripts/install +++ b/scripts/install @@ -58,7 +58,6 @@ then admin="test" fi - ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID ### The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...) @@ -251,7 +250,6 @@ ynh_add_systemd_config # ynh_app_setting_delete $app skipped_uris #fi - #================================================= # MODIFY A CONFIG FILE #================================================= @@ -298,7 +296,6 @@ ynh_store_file_checksum "$final_path/config.ini" ( cd $final_path && $final_path/writefreely --gen-keys ) ( cd $final_path && $final_path/writefreely --create-admin $admin:$password ) - #================================================= # GENERIC FINALIZATION #================================================= @@ -345,7 +342,6 @@ chown -R $app: /var/log/$app/ # if using yunohost version 3.2 or more in the 'manifest.json', a description can be added yunohost service add $app --description "$app daemon for WriteFreely" --log "/var/log/$app/$app.log" - #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index ab6de99..87319e5 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,7 +137,6 @@ ynh_backup_if_checksum_is_different "$final_path/config.ini" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum "$final_path/config.ini" - #================================================= # CLOSE A PORT #================================================= @@ -148,7 +147,6 @@ then yunohost firewall disallow TCP $port 2>&1 fi - #================================================= # SETUP LOGROTATE #=================================================