fix(duplicatie): Add env (#32745)

**Description**
<!--
Helmify the docs. During this progress and test deploying, noticed you
can better add some variables.
Those added in the document and also in the chart values.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

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

**🧪 How Has This Been Tested?**
<!--
Deploy all on my own cluster.
-->

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

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [x ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x ] 📄 I have made changes to the documentation
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x ] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

** App addition**

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

- [ ] 🖼️ 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._
This commit is contained in:
Boemeltrein
2025-03-01 18:25:56 +01:00
committed by GitHub
parent 819598845c
commit 5ebe419c07
5 changed files with 66 additions and 11 deletions
+1 -1
View File
@@ -32,4 +32,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/duplicati
- https://hub.docker.com/r/duplicati/duplicati
type: application
version: 15.5.2
version: 15.5.3
+60
View File
@@ -0,0 +1,60 @@
---
title: How To
---
## Envirable Variable
Ideally, you need at least the settings encryption key provided to the container, how to generate a key can be found below.
Also the webservice password can be given upfront. If you don't set a webservice password an one time login link is given via the logs.
Both can easily provide this via a regular environment variable.
```yaml
workload:
main:
podSpec:
containers:
main:
env:
DUPLICATI__WEBSERVICE_PASSWORD: "SuperSecretPassword"
SETTINGS_ENCRYPTION_KEY: "<real encryption key>"
```
### Example Encryption Key Generation
Below is an example of one way to generate the RPC Secret value, which can be copy paste in a terminal which have openssl installed.
```
$ openssl rand -hex 32
```
## Ingress
This chart requires Ingress to be enabled after initial deployed of this chart due to the configuration of the application upstream.
More information: (see [Duplicati forum post](https://forum.duplicati.com/t/error-message-in-browser-the-host-header-sent-by-the-client-is-not-allowed/5806)).
1. Please deploy the chart without Ingress
2. Login via http://IP/login.html
3. Go to the settings of the application and add your hostname inside the settings of Duplicati.
![image](./img/hostname.png)
4. Restart the chart
5. Once this is done you can successful add an Ingress to the chart. How to add an Ingress can be found in the common documentation.
If you require more help or details please refer to our Discord for help from our Support Staff.
## Read locked files
Information from documentation [upstream](https://docs.duplicati.com/detailed-descriptions/using-duplicati-from-docker#read-locked-files):
Duplicati has support for LVM-based snapshots which is the recommended way for getting a consistent point-in-time copy of the disk. For some uses, it is not possible to configure LVM snapshots, and this can cause problems due to some files being locked. By default, Duplicati will respect the advisory file locking and fail to open locked files, as the lock is usually an indication that the files are in use, and reading it may not result in a meaningful copy.
If you prefer to make a best-effort backup, which was the default in Duplicati v2.0.8.1 and older, you can disable advisory file locking for individual jobs with the advanced option: --ignore-advisory-locking=true. You can also disable file locking support entirely in Duplicatie.
```yaml
workload:
main:
podSpec:
containers:
main:
env:
DOTNET_SYSTEM_IO_DISABLEFILELOCKING: true
```
Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

-9
View File
@@ -1,9 +0,0 @@
---
title: Ingress
---
This chart requires Ingress to be enabled after initial install due to the configuration of the application upstream (see [Duplicati forum post](https://forum.duplicati.com/t/error-message-in-browser-the-host-header-sent-by-the-client-is-not-allowed/5806)). Please install the application without Ingress, access settings of the application and add your hostname inside the settings of the app.
![image](https://user-images.githubusercontent.com/89483932/174445638-bac32cc8-375f-4fdb-a99f-f8b75a4613e1.png)
Once this is done you can successful add Ingress using the steps outlined inside our [Quick-Start Guide](/. If you require more help or details please refer to our Discord for help from our Support Staff.
+5 -1
View File
@@ -23,7 +23,11 @@ workload:
startup:
type: http
path: /
env: {}
env:
DUPLICATI__WEBSERVICE_PASSWORD: "SuperSecretPassword"
# SETTINGS_ENCRYPTION_KEY: "<real encryption key>"
# DOTNET_SYSTEM_IO_DISABLEFILELOCKING: true
persistence:
config:
enabled: true