feat(navidrome): Fix env vars + add questions (#9969)

**Description**

Fixes #7836 ->
https://www.navidrome.org/docs/usage/security/#transcoding-configuration

Also fixes some env_vars that were changed in the upstream docs ->
https://www.navidrome.org/docs/usage/configuration-options/

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
StevenMcElligott
2023-06-29 21:34:31 +03:00
committed by GitHub
co-authored by Stavros kois
parent 274294887f
commit 421c1e8116
3 changed files with 53 additions and 29 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/navidrome
- https://github.com/deluan/navidrome
type: application
version: 15.0.22
version: 15.1.0
annotations:
truecharts.org/catagories: |
- media
+28 -7
View File
@@ -6,15 +6,38 @@ questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: App Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: ND_ENABLETRANSCODINGCONFIG
label: Enables transcoding configuration in the UI
description: To configure transcoding, Navidrome WebUI provide a screen that allows you to edit existing transcoding configurations and to add new ones.
schema:
type: boolean
default: false
- variable: ND_SESSIONTIMEOUT
label: Session Timeout time
description: How long Navidrome will wait before closing web ui idle sessions
schema:
type: string
default: "24h"
required: true
- variable: ND_SCANSCHEDULE
label: Music folder scan schedule frequency
description: Configure periodic scans using cron syntax. To disable it altogether, set it to 0
schema:
type: string
default: "@every 15m"
required: true
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
@@ -48,7 +71,7 @@ questions:
# Include{persistenceBasic}
- variable: music
label: App Music Storage
description: Stores the Application Music.
description: Stores the Application Music. (Defaults to /music)
schema:
additional_attrs: true
type: dict
@@ -68,7 +91,6 @@ questions:
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
@@ -90,7 +112,6 @@ questions:
schema:
type: int
default: 568
# Include{resources}
# Include{advanced}
# Include{addons}
+24 -21
View File
@@ -2,22 +2,6 @@ image:
repository: tccr.io/truecharts/navidrome
pullPolicy: IfNotPresent
tag: 0.49.3@sha256:8a415419867682cd91a202131e728404d51662fc3b084565e143a4f121da9851
service:
main:
ports:
main:
port: 4533
targetPort: 4533
persistence:
data:
enabled: true
mountPath: "/data"
music:
enabled: true
mountPath: "/music"
portal:
open:
enabled: true
workload:
main:
@@ -25,8 +9,27 @@ workload:
containers:
main:
env:
ND_SCANINTERVAL: "15m"
ND_LOGLEVEL: "info"
ND_SESSIONTIMEOUT: "24h"
ND_ENABLETRANSCODINGCONFIG: "true"
ND_MUSICFOLDER: "/music"
ND_MUSICFOLDER: /music
ND_SCANSCHEDULE: "@every 15m"
ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h
ND_ENABLETRANSCODINGCONFIG: false
service:
main:
ports:
main:
port: 4533
targetPort: 4533
persistence:
data:
enabled: true
mountPath: /data
music:
enabled: true
mountPath: /music
portal:
open:
enabled: true