1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00
This commit is contained in:
Éric Gaspar 2022-03-04 10:56:48 +01:00 committed by GitHub
parent 28251c9e48
commit fd6d541c22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 9 deletions

View file

@ -23,7 +23,7 @@ In addition to constituting an advantage in terms of confidentiality (the data d
- Ability to subscribe to channels without creating a Google account
**Shipped version:** 22.02.25~ynh1
**Shipped version:** 22.03.03~ynh1
**Demo:** https://invidious.site/

View file

@ -18,7 +18,7 @@ En plus de constituer un avantage sur le plan de la confidentialité (les donné
- Possibilité d'afficher les commentaires Reddit plutôt que les commentaires YouTube,
- Possibilité de s'abonner aux chaines sans créer de compte Google
**Version incluse :** 22.02.25~ynh1
**Version incluse :** 22.03.03~ynh1
**Démo :** https://invidious.site/

View file

@ -293,8 +293,10 @@ captcha_enabled: __CAPTCHA_ENABLED__
## Accepted values: an array of strings
## Default: [""]
##
#admins: [""]
admins: ["__ADMIN__"]
## Email provided to users for bug reports
admin_email: __EMAIL__
# -----------------------------
# Background jobs
@ -708,7 +710,7 @@ default_user_preferences:
## 720p, 480p, 360p, 240p, 144p, worst
## Default: auto
##
quality_dash: auto
#quality_dash: auto
##
## Default video playback speed.

View file

@ -6,7 +6,7 @@
"en": "Alternative front-end to YouTube",
"fr": "Front-end alternatif à YouTube"
},
"version": "22.02.25~ynh1",
"version": "22.03.03~ynh1",
"url": "https://invidio.us/",
"upstream": {
"license": "GPL-3.0-only",
@ -32,6 +32,10 @@
"name": "domain",
"type": "domain"
},
{
"name": "admin",
"type": "user"
},
{
"name": "is_public",
"type": "boolean",

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
version_commit=081fd541afc9b2f9b821e0f8f4c66dda0839295c
version_commit=bdfe317e20c9cc5d9e972e51d995faf59b86197d
# dependencies used by the app
pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin imagemagick libsqlite3-dev zlib1g-dev libevent-dev pkg-config libpcre3-dev"

View file

@ -70,7 +70,7 @@ fi
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# MODIFY URL IN NGINX CONF
@ -108,7 +108,7 @@ fi
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=3
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#=================================================
# RELOAD NGINX

View file

@ -27,6 +27,8 @@ domain=$YNH_APP_ARG_DOMAIN
path_url="/"
is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE
admin=$YNH_APP_ARG_ADMIN
email=$(ynh_user_get_info --username=$admin --key=mail)
app=$YNH_APP_INSTANCE_NAME
@ -53,6 +55,8 @@ ynh_script_progression --message="Storing installation settings..." --weight=2
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=language --value=$language
ynh_app_setting_set --app=$app --key=admin --value=$admin
ynh_app_setting_set --app=$app --key=email --value=$email
ynh_app_setting_set --app=$app --key=registration_enabled --value=$registration_enabled
ynh_app_setting_set --app=$app --key=login_enabled --value=$login_enabled
ynh_app_setting_set --app=$app --key=captcha_enabled --value=$captcha_enabled
@ -197,6 +201,8 @@ then
ynh_permission_update --permission="main" --add="visitors"
fi
ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true"
#=================================================
# RELOAD NGINX
#=================================================

View file

@ -19,11 +19,13 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
admin=$(ynh_app_setting_get --app=$app --key=admin)
port=$(ynh_app_setting_get --app=$app --key=port)
language=$(ynh_app_setting_get --app=$app --key=language)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
email=$(ynh_app_setting_get --app=$app --key=email)
registration_enabled=$(ynh_app_setting_get --app=$app --key=registration_enabled)
login_enabled=$(ynh_app_setting_get --app=$app --key=login_enabled)
@ -129,7 +131,7 @@ chown -R $app:www-data "$final_path"
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2
# Create a dedicated nginx config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================