mirror of
https://github.com/MAGICGrants/truenas-apps.git
synced 2026-01-09 20:47:58 -05:00
add warning for calibre (#2056)
This commit is contained in:
@@ -47,4 +47,4 @@ sources:
|
||||
- https://calibre-ebook.com/
|
||||
title: Calibre
|
||||
train: community
|
||||
version: 1.0.22
|
||||
version: 1.0.23
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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) %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user