diff --git a/README.md b/README.md index b937241..de25991 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ It shall NOT be edited by hand. # 13ft for YunoHost [![Integration level](https://dash.yunohost.org/integration/13ft.svg)](https://dash.yunohost.org/appci/app/13ft) ![Working status](https://ci-apps.yunohost.org/ci/badges/13ft.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/13ft.maintain.svg) + [![Install 13ft with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=13ft) *[Lire ce readme en français.](./README_fr.md)* @@ -22,7 +23,7 @@ https://github.com/wasi-master/13ft - Provide *some* web articles that are normally protected by paywalls. -**Shipped version:** 0.1.1~ynh5 +**Shipped version:** 0.2.0~ynh1 ## Disclaimers / important information diff --git a/README_fr.md b/README_fr.md index eb91bb3..b4644f5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -6,6 +6,7 @@ It shall NOT be edited by hand. # 13ft pour YunoHost [![Niveau d’intégration](https://dash.yunohost.org/integration/13ft.svg)](https://dash.yunohost.org/appci/app/13ft) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/13ft.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/13ft.maintain.svg) + [![Installer 13ft avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=13ft) *[Read this readme in english.](./README.md)* @@ -22,7 +23,7 @@ https://github.com/wasi-master/13ft - Provide *some* web articles that are normally protected by paywalls. -**Version incluse :** 0.1.1~ynh5 +**Version incluse :** 0.2.0~ynh1 ## Avertissements / informations importantes diff --git a/conf/app.src b/conf/app.src index ff8c567..186aba5 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/wasi-master/13ft/archive/refs/tags/v0.1.1.tar.gz -SOURCE_SUM=166685beb4aa1f924ef9d1b52d478702858b478a9e02cf49c1dab28e79d03601 +SOURCE_URL=https://github.com/wasi-master/13ft/archive/refs/tags/v0.2.0.tar.gz +SOURCE_SUM=727fe845823b400d60a0b98656308773ef2c19898f6b9c249be7682b269d854a SOURCE_SUM_PRG=sha256sum SOURCE_EXTRACT=true SOURCE_IN_SUBDIR=true diff --git a/conf/nginx.conf b/conf/nginx.conf index 9782b91..2de679f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,8 +1,10 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - # Path to source - alias __FINALPATH__/; + + proxy_pass http://localhost:5000; + proxy_set_header Host $http_host; + more_set_headers "X-Frame-Options: ALLOWALL"; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; diff --git a/manifest.json b/manifest.json index 1a4dc89..20a97ce 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Bypass paywall by acting as GoogleBot", "fr": "Contourner les paywall en vous faisant passer pour GoogleBot" }, - "version": "0.1.1~ynh5", + "version": "0.2.0~ynh1", "url": "https://github.com/wasi-master/13ft", "upstream": { "license": "MIT", diff --git a/scripts/install b/scripts/install index 0c63680..3d3097c 100755 --- a/scripts/install +++ b/scripts/install @@ -103,6 +103,11 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 +if [ ! -d /var/log/$app ]; then + mkdir /var/log/$app +fi + + # Create a dedicated systemd config ynh_add_systemd_config diff --git a/scripts/remove b/scripts/remove index 65b9935..8b18014 100755 --- a/scripts/remove +++ b/scripts/remove @@ -49,6 +49,8 @@ ynh_script_progression --message="Removing app main directory..." --weight=1 # Remove the app directory securely ynh_secure_remove --file="$final_path" +ynh_secure_remove --file=/var/log/$app + #================================================= # REMOVE NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e7e66ea..43d78e6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -156,6 +156,10 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 +if [ ! -d /var/log/$app ]; then + mkdir /var/log/$app +fi + # Create a dedicated systemd config ynh_add_systemd_config