From 5742d25f973e97af8926fbefa7a4103f094f9afd Mon Sep 17 00:00:00 2001 From: David Stephens Date: Thu, 14 Mar 2024 00:45:01 +0000 Subject: [PATCH] Calibre/calibre-web tweaks --- roles/calibre/defaults/main.yml | 4 +- roles/calibre/docs/calibre.md | 24 ------------ roles/calibreweb/docs/calibre-web.md | 37 ------------------- roles/calibreweb/tasks/main.yml | 1 + .../applications/media-serving/calibre-web.md | 14 +------ 5 files changed, 5 insertions(+), 75 deletions(-) delete mode 100644 roles/calibre/docs/calibre.md delete mode 100644 roles/calibreweb/docs/calibre-web.md diff --git a/roles/calibre/defaults/main.yml b/roles/calibre/defaults/main.yml index 602c21055f..fe1543f8ac 100644 --- a/roles/calibre/defaults/main.yml +++ b/roles/calibre/defaults/main.yml @@ -3,8 +3,8 @@ calibre_enabled: false calibre_available_externally: "false" # uid / gid -calibre_user_id: "1000" -calibre_group_id: "1000" +calibre_user_id: "0" +calibre_group_id: "0" # directories calibre_data_directory: "{{ docker_home }}/calibre" diff --git a/roles/calibre/docs/calibre.md b/roles/calibre/docs/calibre.md deleted file mode 100644 index 0ae22af8da..0000000000 --- a/roles/calibre/docs/calibre.md +++ /dev/null @@ -1,24 +0,0 @@ -# Calibre - -Homepage: [https://calibre-ebook.com](https://calibre-ebook.com) - -Calibre is a powerful and easy to use e-book manager. - -## Usage - -Set `calibre_enabled: true` in your `inventories//nas.yml` file. - -## Specific Configuration - -By default, there is no password set for the main gui. Optional `calibre_password` will allow setting a password for the user `abc`. - -Optionally, cli start arguments can be passed to calibre using `calibre_cli_args`. - -The Calibre webserver must be turned on in the Calibre manager to make it available at the selected port (8094 by default). - -## Ports - -```yml -calibre_port: "8093" -calibre_webserver_port: "8094" -``` diff --git a/roles/calibreweb/docs/calibre-web.md b/roles/calibreweb/docs/calibre-web.md deleted file mode 100644 index 26d746ef98..0000000000 --- a/roles/calibreweb/docs/calibre-web.md +++ /dev/null @@ -1,37 +0,0 @@ -# "Calibre-web" - -Homepage: - -Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database. - -## Usage - -Set `calibreweb_enabled: true` in your `inventories//nas.yml` file. - -## Specific Configuration - -Requires Calibre ebook management program. Available for download [here](https://calibre-ebook.com/download). - -### Admin login - -**Default admin login:** Username: admin Password: admin123 - -### eBook Conversion - -If you do not need eBook conversion you can disable it to save resources by setting the `calibreweb_ebook_conversion` variable in `group_vars/all.yml` file to be empty. - -- Conversion enabled: `calibreweb_ebook_conversion: "linuxserver/calibre-web:calibre"` - -- Conversion disabled: `calibreweb_ebook_conversion: ""` - -You can target just Calibre by appending `-t calibre` to your `ansible-playbook` command. - -## Use with Calibre - -Ansible-NAS add [../calibre](Calibre) long after Calibre-web. To allow Calibre-web direct access to the Calibre database, both applications can share a Docker data directory. To do so, include the following in your inventory `nas.yml`: - -```yml -calibreweb_data_directory: "{{ docker_home }}/calibre" -``` - -In this case, the Calibre Database Directory is `/data/Calibre Library`. diff --git a/roles/calibreweb/tasks/main.yml b/roles/calibreweb/tasks/main.yml index 09c6fd49b8..773fd2be5d 100644 --- a/roles/calibreweb/tasks/main.yml +++ b/roles/calibreweb/tasks/main.yml @@ -7,6 +7,7 @@ state: directory with_items: - "{{ calibreweb_data_directory }}/config" + - "{{ calibreweb_data_directory }}/data" - name: Calibre-web Docker Container docker_container: diff --git a/website/docs/applications/media-serving/calibre-web.md b/website/docs/applications/media-serving/calibre-web.md index d6b149cee7..8b9de5c7f1 100644 --- a/website/docs/applications/media-serving/calibre-web.md +++ b/website/docs/applications/media-serving/calibre-web.md @@ -2,7 +2,7 @@ title: "Calibre-web" --- -Homepage: +Homepage: [https://github.com/janeczku/calibre-web](https://github.com/janeczku/calibre-web) Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database. @@ -12,7 +12,7 @@ Set `calibreweb_enabled: true` in your `inventories//nas.yml` fi ## Specific Configuration -Requires Calibre ebook management program. Available for download [here](https://calibre-ebook.com/download). +Requires Calibre to be set up - `calibre_enabled: true` ### Admin login @@ -27,13 +27,3 @@ If you do not need eBook conversion you can disable it to save resources by sett - Conversion disabled: `calibreweb_ebook_conversion: ""` You can target just Calibre by appending `-t calibre` to your `ansible-playbook` command. - -## Use with Calibre - -Ansible-NAS add [../calibre](Calibre) long after Calibre-web. To allow Calibre-web direct access to the Calibre database, both applications can share a Docker data directory. To do so, include the following in your inventory `nas.yml`: - -```yml -calibreweb_data_directory: "{{ docker_home }}/calibre" -``` - -In this case, the Calibre Database Directory is `/data/Calibre Library`.