1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/komga_ynh.git synced 2024-09-03 19:36:07 +02:00

Merge pull request #150 from YunoHost-Apps/settings

Settings
This commit is contained in:
eric_G 2024-06-12 16:22:37 +02:00 committed by GitHub
commit c7c890f906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 40 additions and 31 deletions

View file

@ -30,7 +30,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**Shipped version:** 1.10.3~ynh1
**Shipped version:** 1.11.1~ynh1
**Demo:** <https://demo.komga.org>

View file

@ -30,7 +30,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**Versión actual:** 1.10.3~ynh1
**Versión actual:** 1.11.1~ynh1
**Demo:** <https://demo.komga.org>

View file

@ -30,7 +30,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**Paketatutako bertsioa:** 1.10.3~ynh1
**Paketatutako bertsioa:** 1.11.1~ynh1
**Demoa:** <https://demo.komga.org>

View file

@ -29,7 +29,7 @@ Komga est un serveur de bandes dessinées/mangas gratuit et open source.
- Propose une API REST, de nombreux outils et scripts communautaires peuvent interagir avec Komga
- Télécharger des fichiers de livres
**Version incluse:** 1.10.3~ynh1
**Version incluse:** 1.11.1~ynh1
**Démo:** <https://demo.komga.org>

View file

@ -30,7 +30,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**Versión proporcionada:** 1.10.3~ynh1
**Versión proporcionada:** 1.11.1~ynh1
**Demo:** <https://demo.komga.org>

View file

@ -30,7 +30,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**分发版本:** 1.10.3~ynh1
**分发版本:** 1.11.1~ynh1
**演示:** <https://demo.komga.org>

View file

@ -1,26 +1,16 @@
# Only keep lines that are relevant to you!
# Lines starting with # are comments
# Make sure indentation is correct (2 spaces at every indentation level), yaml is very sensitive!
komga:
libraries-scan-cron: "* */15 * * * ?" #periodic scan every 15 minutes
libraries-scan-cron: "-" #disable periodic scan
libraries-scan-startup: false #scan libraries at startup
libraries-scan-directory-exclusions: #patterns to exclude directories from the scan
- "#recycle" #synology NAS recycle bin
- "@eaDir" #synology NAS index/metadata folders
remember-me:
key: changeMe! #required to activate the remember-me auto-login via cookies
validity: 2592000 #validity of the cookie in seconds, here 1 month
config-dir: __DATA_DIR__/
database:
file: __DATA_DIR__/.komga/database.sqlite
database-backup:
path: ~/.komga/database-backup.zip
schedule: "0 0 */6 * * ?" #every 6 hours
enabled: true
startup: true
file: __DATA_DIR__/database.sqlite
cors.allowed-origins:
- http://127.0.0.1:__PORT__
delete-empty-collections: true
delete-empty-read-lists: true
server:
port: __PORT__
servlet.context-path: __PATH__/
spring:
datasource:
url: jdbc:h2:/path/to/your/database.h2 #absolute path for Unix
url: jdbc:h2:D:\\komga\database.h2 #absolute path for Windows
url: jdbc:h2:~/.komga/database.h2 #relative path to user home directory
url: jdbc:h2:./komga/database.h2 #relative path to current directory
servlet:
session.timeout: 7d # session timeout, here 7 days
context-path: __PATH__/

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
ExecStart=/usr/bin/java -jar -Xmx1g komga.jar --server.port=__PORT__ --server.servlet.context-path="__PATH__"
ExecStart=/usr/bin/java -jar -Xmx1g komga.jar --server.port=__PORT__ --server.servlet.context-path="__PATH__/" --komga.config-dir="__DATA_DIR__/"
Restart=on-failure
RestartSec=10

View file

@ -5,7 +5,7 @@ name = "Komga"
description.en = "Media server for your comics, manga and magazines"
description.fr = "Serveur multimédia pour vos bandes dessinées, mangas et magazines"
version = "1.10.3~ynh1"
version = "1.11.1~ynh1"
maintainers = ["Navan Chauhan"]
@ -55,7 +55,6 @@ ram.runtime = "50M"
[resources.install_dir]
[resources.data_dir]
subdirs = [".komga"]
[resources.permissions]
main.url = "/"

View file

@ -19,6 +19,16 @@ ynh_setup_source --dest_dir="$install_dir"
chown -R $app:www-data "$install_dir"
chmod +x $install_dir/komga.jar
#=================================================
# APP INITIAL CONFIGURATION
#=================================================
ynh_script_progression --message="Adding $app's configuration files..." --weight=1
ynh_add_config --template="application.yml" --destination="$data_dir/application.yml"
chmod 400 "$data_dir/application.yml"
chown "$app:$app" "$data_dir/application.yml"
#=================================================
# SYSTEM CONFIGURATION
#=================================================

View file

@ -28,6 +28,16 @@ ynh_setup_source --dest_dir="$install_dir"
chown -R $app:www-data "$install_dir"
chmod +x $install_dir/komga.jar
#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression --message="Updating $app's configuration files..." --weight=1
ynh_add_config --template="application.yml" --destination="$data_dir/application.yml"
chmod 400 "$data_dir/application.yml"
chown "$app:$app" "$data_dir/application.yml"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================