add warning for calibre (#2056)

This commit is contained in:
Stavros Kois
2025-04-10 11:43:25 +03:00
committed by GitHub
parent 397b32c8d1
commit 71d24fcbba
4 changed files with 25 additions and 1 deletions

View File

@@ -47,4 +47,4 @@ sources:
- https://calibre-ebook.com/
title: Calibre
train: community
version: 1.0.22
version: 1.0.23

View File

@@ -7,3 +7,6 @@ consts:
calibre_container_name: calibre
config_path: /config
internal_web_port: 8081
no_auth_warning: |
⚠️ Calibre is running without authentication.
See the potential security risks: https://info.linuxserver.io/issues/2024-10-06-securing-kasm/

View File

@@ -29,6 +29,21 @@ questions:
schema:
type: dict
attrs:
- variable: username
label: Username
description: The username for Calibre.
schema:
type: string
default: ""
- variable: password
label: Password
description: The password for Calibre.
schema:
type: string
show_if: [["username", "!=", ""]]
private: true
required: true
default: ""
- variable: additional_envs
label: Additional Environment Variables
description: Configure additional environment variables for Calibre.

View File

@@ -8,6 +8,12 @@
{% do c1.environment.add_env("CUSTOM_PORT", values.network.http_port) %}
{% do c1.environment.add_env("CUSTOM_HTTPS_PORT", values.network.https_port) %}
{% if values.calibre.username %}
{% do c1.environment.add_env("CUSTOM_USER", values.calibre.username) %}
{% do c1.environment.add_env("PASSWORD", values.calibre.password) %}
{% else %}
{% do tpl.notes.add_warning(values.consts.no_auth_warning) %}
{% endif %}
{% do c1.environment.add_user_envs(values.calibre.additional_envs) %}