mirror of
https://github.com/YunoHost-Apps/komga_ynh.git
synced 2024-09-03 19:36:07 +02:00
add settings
This commit is contained in:
parent
62df350bca
commit
012d6de015
5 changed files with 34 additions and 25 deletions
|
@ -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:
|
komga:
|
||||||
libraries-scan-cron: "* */15 * * * ?" #periodic scan every 15 minutes
|
config-dir: __DATA_DIR__/
|
||||||
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
|
|
||||||
database:
|
database:
|
||||||
file: __DATA_DIR__/.komga/database.sqlite
|
file: __DATA_DIR__/database.sqlite
|
||||||
database-backup:
|
cors.allowed-origins:
|
||||||
path: ~/.komga/database-backup.zip
|
- http://127.0.0.1:__PORT__
|
||||||
schedule: "0 0 */6 * * ?" #every 6 hours
|
delete-empty-collections: true
|
||||||
enabled: true
|
delete-empty-read-lists: true
|
||||||
startup: true
|
|
||||||
server:
|
server:
|
||||||
port: __PORT__
|
port: __PORT__
|
||||||
servlet.context-path: __PATH__/
|
servlet:
|
||||||
spring:
|
session.timeout: 7d # session timeout, here 7 days
|
||||||
datasource:
|
context-path: __PATH__/
|
||||||
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
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
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
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Komga"
|
||||||
description.en = "Media server for your comics, manga and magazines"
|
description.en = "Media server for your comics, manga and magazines"
|
||||||
description.fr = "Serveur multimédia pour vos bandes dessinées, mangas et 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"]
|
maintainers = ["Navan Chauhan"]
|
||||||
|
|
||||||
|
@ -55,7 +55,6 @@ ram.runtime = "50M"
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.data_dir]
|
[resources.data_dir]
|
||||||
subdirs = [".komga"]
|
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
|
@ -19,6 +19,16 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod +x $install_dir/komga.jar
|
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
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -28,6 +28,16 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod +x $install_dir/komga.jar
|
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
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue