Skip to content

Commit 788a53e

Browse files
committed
Set default webui password
1 parent bf4041a commit 788a53e

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pipeline {
3737
CI_DELAY='120'
3838
CI_DOCKERENV='SETTINGS_ENCRYPTION_KEY=abcde12345'
3939
CI_AUTH=''
40-
CI_WEBPATH=''
40+
CI_WEBPATH='/login.html'
4141
}
4242
stages {
4343
stage("Set git config"){

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ services:
9090
- TZ=Etc/UTC
9191
- SETTINGS_ENCRYPTION_KEY=
9292
- CLI_ARGS= #optional
93+
- DUPLICATI__WEBSERVICE_PASSWORD= #optional
9394
volumes:
9495
- /path/to/duplicati/config:/config
9596
- /path/to/backups:/backups
@@ -109,6 +110,7 @@ docker run -d \
109110
-e TZ=Etc/UTC \
110111
-e SETTINGS_ENCRYPTION_KEY= \
111112
-e CLI_ARGS= `#optional` \
113+
-e DUPLICATI__WEBSERVICE_PASSWORD= `#optional` \
112114
-p 8200:8200 \
113115
-v /path/to/duplicati/config:/config \
114116
-v /path/to/backups:/backups \
@@ -129,6 +131,7 @@ Containers are configured using parameters passed at runtime (such as those abov
129131
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
130132
| `-e SETTINGS_ENCRYPTION_KEY=` | Encryption key for settings database. Minimum 8 characters, alphanumeric. |
131133
| `-e CLI_ARGS=` | Optionally specify any [CLI variables](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/) you want to launch the app with |
134+
| `-e DUPLICATI__WEBSERVICE_PASSWORD=` | Password for the webui. If left unset will default to `changeme` and can be changed from the webui settings. |
132135
| `-v /config` | Contains all relevant configuration files. |
133136
| `-v /backups` | Path to store local backups. |
134137
| `-v /source` | Path to source for files to backup. |

jenkins-vars.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ repo_vars:
2525
- CI_DELAY='120'
2626
- CI_DOCKERENV='SETTINGS_ENCRYPTION_KEY=abcde12345'
2727
- CI_AUTH=''
28-
- CI_WEBPATH=''
28+
- CI_WEBPATH='/login.html'

readme-vars.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ param_env_vars:
3838
opt_param_usage_include_env: true
3939
opt_param_env_vars:
4040
- { env_var: "CLI_ARGS", env_value: "", desc: "Optionally specify any [CLI variables](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/) you want to launch the app with" }
41+
- { env_var: "DUPLICATI__WEBSERVICE_PASSWORD", env_value: "", desc: "Password for the webui. If left unset will default to `changeme` and can be changed from the webui settings."}
4142

4243
# application setup block
4344
app_setup_block_enabled: true

root/etc/s6-overlay/s6-rc.d/init-duplicati-config/run

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ if [[ -f "/config/Duplicati-server.sqlite" ]]; then
1616
fi
1717
else
1818
# New install
19+
if [[ -z ${DUPLICATI__WEBSERVICE_PASSWORD} ]]; then
20+
printf "changeme" > /run/s6/container_environment/DUPLICATI__WEBSERVICE_PASSWORD
21+
fi
1922
if [[ -n ${SETTINGS_ENCRYPTION_KEY} ]]; then
2023
# Enable settings encryption
2124
true

0 commit comments

Comments
 (0)