mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
set default media folder to mutimedia
This commit is contained in:
parent
a1fd995d50
commit
fcf4529db3
6 changed files with 38 additions and 34 deletions
10
README.md
10
README.md
|
@ -23,11 +23,19 @@ Navidrome is an open source web-based music collection server and streamer. It g
|
|||
|
||||
## Configuration
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
You can configure Navidrome by editing this file `/var/lib/navidrome/navidrome.toml` using the [documentation](https://www.navidrome.org/docs/usage/configuration-options/).
|
||||
|
||||
The music is to be stored in the folder `/home/yunohost.navidrome/Music`.
|
||||
=======
|
||||
#### Where are stored your music files
|
||||
|
||||
You must activate public site if you want to connect a client player to Navidrome.
|
||||
Your music files are stored in your shared [multimedia folder](https://github.com/YunoHost-Apps/yunohost.multimedia) `/home/yunohost.multimedia/share/Music`. This folder is accessible from Nextcloud with *External Storages* enabled. This will allow you to easily upload your music files to the server.
|
||||
|
||||
You can configure an alternative path to you music tracks by editing `MusicFolder` in this file `/var/lib/navidrome/navidrome.toml` using the [documentation](https://www.navidrome.org/docs/usage/configuration-options/).
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
You must activate *public site* if you want to connect a client player to Navidrome.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
|
|
@ -23,11 +23,13 @@ Navidrome est un serveur et un streamer de collection de musique en ligne open s
|
|||
|
||||
## Configuration
|
||||
|
||||
Vous pouvez configurer Navidrome en modifiant le fichier `/var/lib/navidrome/navidrome.toml` et en vous aidant de la [documentation](https://www.navidrome.org/docs/usage/configuration-options/).
|
||||
#### Où est stockée votre musique
|
||||
|
||||
La musique est à stocker dans le dossier `/home/yunohost.navidrome/Music`.
|
||||
Votre musique est stockée par default dans le dossier multimédia partagé `/home/yunohost.multimedia/share/Music`. Ce dossier est facilement accessible depuis Nextcloud avec *Stockages externes* activée. Cela vous permettra d'envoyer facilement vos fichiers musicaux sur votre server.
|
||||
|
||||
Vous devez activer site public si vous souhaitez connecter un lecteur client à Navidrome.
|
||||
Vous pouvez configurer un chemin alternatif vers vos morceaux de musique en éditant `MusicFolder` dans ce fichier`/var/lib/navidrome/navidrome.toml` en utilisant la [documentation](https://www.navidrome.org/docs/usage/configuration-options/).
|
||||
|
||||
Vous devez activer *site public* si vous souhaitez connecter un lecteur client à Navidrome.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
|
|
@ -5,4 +5,21 @@ BaseURL = "__PATH_URL__"
|
|||
ScanInterval = "90s"
|
||||
TranscodingCacheSize = "150MiB"
|
||||
DataFolder = "__CONFIG_PATH__"
|
||||
<<<<<<< Updated upstream
|
||||
MusicFolder = "/home/yunohost.navidrome/Music"
|
||||
=======
|
||||
# Folder where your music library is stored. Can be read-only
|
||||
MusicFolder = "/home/yunohost.multimedia/share/Music"
|
||||
# How long Navidrome will wait before closing web ui idle sessions
|
||||
SessionTimeout = "24h"
|
||||
# Set JPEG quality percentage for resized cover art images
|
||||
CoverJpegQuality = "75"
|
||||
#Configure the order to look for cover art images. Use special embedded value to get embedded images from the audio files
|
||||
CoverArtPriority = "embedded, cover.*, folder.*, front.*"
|
||||
# Match query strings anywhere in searchable fields, not only in word boundaries. Useful for languages where words are not space separated
|
||||
SearchFullString = "false"
|
||||
# List of ignored articles when sorting/indexing artists
|
||||
IgnoredArticles = "The El La Los Las Le Les Os As O A"
|
||||
# Enable/disable .m3u playlist auto-import
|
||||
AutoImportPlaylists = "true"
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
@ -94,17 +94,12 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=3
|
|||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding multimedia directories..." --weight=5
|
||||
|
||||
mkdir -p /home/yunohost.$app/Music
|
||||
ynh_script_progression --message="Adding multimedia directories..." --weight=2
|
||||
|
||||
ynh_multimedia_build_main_dir
|
||||
ynh_multimedia_addfolder --source_dir="/home/yunohost.$app/Music" --dest_dir="share/Music"
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
@ -145,10 +140,6 @@ ynh_script_progression --message="Securing files and directories..." --weight=1
|
|||
chown -R $app:$app "$final_path"
|
||||
chown -R $app:$app "$config_path"
|
||||
|
||||
# Set permissions to media files
|
||||
chown -R $app:www-data /home/yunohost.$app/
|
||||
chmod -R 764 /home/yunohost.$app
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
|
|
|
@ -77,8 +77,8 @@ ynh_system_user_create --username=$app
|
|||
ynh_script_progression --message="Restoring user rights..."
|
||||
|
||||
# Restore permissions on app files
|
||||
chown -R $app:$app "$final_path"
|
||||
chown -R $app:$app "/var/lib/$app"
|
||||
chown -R $app: "$final_path"
|
||||
chown -R $app: "/var/lib/$app"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC RESTORATION
|
||||
|
|
|
@ -102,22 +102,12 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
|
|||
# Create a dedicated user (if not existing)
|
||||
ynh_system_user_create --username=$app
|
||||
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding multimedia directories..." --weight=5
|
||||
|
||||
mkdir -p /home/yunohost.$app/Music
|
||||
|
||||
ynh_multimedia_build_main_dir
|
||||
ynh_multimedia_addfolder --source_dir="/home/yunohost.$app/Music" --dest_dir="share/Music"
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
# ynh_script_progression --message="Modifying a config file..."
|
||||
|
||||
config_path="/var/lib/$app"
|
||||
#config_path="/var/lib/$app"
|
||||
# mkdir -p "$config_path"
|
||||
|
||||
# ynh_backup_if_checksum_is_different --file="$config_path/navidrome.toml"
|
||||
|
@ -151,12 +141,8 @@ ynh_add_systemd_config
|
|||
ynh_script_progression --message="Securing files and directories..."
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R $app:$app $final_path
|
||||
chown -R $app:$app $config_path
|
||||
|
||||
# Set permissions on media files
|
||||
chown -R $app:www-data /home/yunohost.$app/
|
||||
chmod -R 764 /home/yunohost.$app
|
||||
chown -R $app: $final_path
|
||||
chown -R $app: $config_path
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
|
|
Loading…
Add table
Reference in a new issue