1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nitter_ynh.git synced 2024-09-03 19:46:24 +02:00
This commit is contained in:
Éric Gaspar 2023-08-27 22:37:20 +02:00
parent d2579fe7b9
commit 227ed3833d
6 changed files with 13 additions and 34 deletions

View file

@ -1 +1 @@
Nitter config file is stored in `/var/www/nitter/nitter.conf` (for the first instance, subsequent installs will go in `nitter__2`, `nitter__3`, etc). Users can override the defaults and set custom settings at `https://__DOMAIN__/settings`. Nitter config file is stored in `__INSTALL_DIR__/nitter.conf`. Users can override the defaults and set custom settings at `https://__DOMAIN__/settings`.

View file

@ -1 +1 @@
Le ficher de configuration de Nitter se trouve à `/var/www/nitter/nitter.conf` (pour la première installation, les prochaines installations iront dans `nitter__2`, `nitter__3`, etc). Les utilisateurs peuvent modifier les paramétres par défaut en visitant `https://__DOMAIN__/settings`. Le ficher de configuration de Nitter se trouve à `__INSTALL_DIR__/nitter.conf`. Les utilisateurs peuvent modifier les paramétres par défaut en visitant `https://__DOMAIN__/settings`.

View file

@ -1,4 +1,4 @@
A free and open source alternative Twitter front-end focused on privacy and performance. Nitter is a free and open source alternative Twitter front-end focused on privacy and performance.
Inspired by the Invidious project. Inspired by the Invidious project.
### Features ### Features

View file

@ -56,7 +56,7 @@ set_permissions
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_use_logrotate ynh_use_logrotate
yunohost service add $app --description="Alternative front-end for Twitter that respects your privacy" --log="/var/log/$app/$app.log" yunohost service add $app --description="Alternative front-end for Twitter" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION

View file

@ -37,7 +37,7 @@ systemctl enable $app.service --quiet
ynh_use_logrotate --non-append ynh_use_logrotate --non-append
ynh_restore_file --origin_path="/etc/logrotate.d/$app" ynh_restore_file --origin_path="/etc/logrotate.d/$app"
yunohost service add $app --description="Alternative front-end for Twitter that respects your privacy" --log="/var/log/$app/$app.log" yunohost service add $app --description="Alternative front-end for Twitter" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE

View file

@ -50,14 +50,6 @@ fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
@ -75,36 +67,23 @@ build_nitter
#ynh_add_config --template="nitter.conf" --destination="$install_dir/nitter.conf" #ynh_add_config --template="nitter.conf" --destination="$install_dir/nitter.conf"
#================================================= #=================================================
# SETUP SYSTEMD # REAPPLY SYSTEM CONFIGURATIONS
#================================================= #=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config
#================================================= # Use logrotate to manage app-specific logfile(s)
# SECURE FILES AND DIRECTORIES ynh_use_logrotate --non-append
#=================================================
# Set permissions on app files # Set permissions on app files
set_permissions set_permissions
#================================================= yunohost service add $app --description="Alternative front-end for Twitter" --log="/var/log/$app/$app.log"
# GENERIC FINALIZATION
#=================================================
# SETUP LOGROTATE
#=================================================
ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --non-append
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Alternative front-end for Twitter that respects your privacy" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE