mirror of
https://github.com/YunoHost-Apps/13ft_ynh.git
synced 2024-09-03 18:06:03 +02:00
commit
c7251fd866
8 changed files with 22 additions and 7 deletions
|
@ -6,6 +6,7 @@ It shall NOT be edited by hand.
|
||||||
# 13ft for YunoHost
|
# 13ft for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/13ft)  
|
[](https://dash.yunohost.org/appci/app/13ft)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=13ft)
|
[](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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ It shall NOT be edited by hand.
|
||||||
# 13ft pour YunoHost
|
# 13ft pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/13ft)  
|
[](https://dash.yunohost.org/appci/app/13ft)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=13ft)
|
[](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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue