1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/13ft_ynh.git synced 2024-09-03 18:06:03 +02:00

Merge pull request #8 from YunoHost-Apps/testing

Testing
This commit is contained in:
lapineige 2023-07-26 09:39:38 +02:00 committed by GitHub
commit c7251fd866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 22 additions and 7 deletions

View file

@ -6,6 +6,7 @@ It shall NOT be edited by hand.
# 13ft for YunoHost # 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) [![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) [![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)* *[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. - 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 ## Disclaimers / important information

View file

@ -6,6 +6,7 @@ It shall NOT be edited by hand.
# 13ft pour YunoHost # 13ft pour YunoHost
[![Niveau dinté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) [![Niveau dinté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) [![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)* *[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. - 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 ## Avertissements / informations importantes

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/wasi-master/13ft/archive/refs/tags/v0.1.1.tar.gz SOURCE_URL=https://github.com/wasi-master/13ft/archive/refs/tags/v0.2.0.tar.gz
SOURCE_SUM=166685beb4aa1f924ef9d1b52d478702858b478a9e02cf49c1dab28e79d03601 SOURCE_SUM=727fe845823b400d60a0b98656308773ef2c19898f6b9c249be7682b269d854a
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_EXTRACT=true SOURCE_EXTRACT=true
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -1,8 +1,10 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { 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 SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;

View file

@ -6,7 +6,7 @@
"en": "Bypass paywall by acting as GoogleBot", "en": "Bypass paywall by acting as GoogleBot",
"fr": "Contourner les paywall en vous faisant passer pour 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", "url": "https://github.com/wasi-master/13ft",
"upstream": { "upstream": {
"license": "MIT", "license": "MIT",

View file

@ -103,6 +103,11 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1 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 # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config

View file

@ -49,6 +49,8 @@ ynh_script_progression --message="Removing app main directory..." --weight=1
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
ynh_secure_remove --file=/var/log/$app
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION
#================================================= #=================================================

View file

@ -156,6 +156,10 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 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 # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config