feat(dozzle): add auth support (#3070)

* feat(dozzle): add auth support

* rename users.yml to users.yml.template for the template to work

* dozzle requires a password hash instead of a raw password

* make password hash field a type password again

* fix username

* password hash field: use hint
This commit is contained in:
Hunam (Elie TD) 2024-04-08 15:45:12 +03:00 committed by GitHub
parent 8b9e5ba593
commit 4376984515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 26 additions and 1 deletions

View File

@ -15,6 +15,25 @@
"author": "Amir Raminfar",
"source": "https://github.com/amir20/dozzle",
"form_fields": [
{
"env_variable": "DOZZLE_USERNAME",
"label": "Username",
"required": true,
"min": 1,
"max": 128,
"type": "text"
},
{
"env_variable": "DOZZLE_PASSWORD_HASH",
"label": "Password Hash (SHA-256)",
"hint": "Tutorial: https://gist.github.com/Hunam6/45ddf6f29e88af2d137efdded899cb25",
"pattern_error": "Invalid hash, make sure to follow this tutorial: https://gist.github.com/Hunam6/45ddf6f29e88af2d137efdded899cb25",
"regex": "^[a-fA-F0-9]{64}$",
"type": "password",
"required": true,
"min": 64,
"max": 64
},
{
"type": "boolean",
"label": "Disable Google Analytics",
@ -26,4 +45,4 @@
"arm64",
"amd64"
]
}
}

View File

@ -0,0 +1,4 @@
users:
{{DOZZLE_USERNAME}}:
name: {{DOZZLE_USERNAME}}
password: "{{DOZZLE_PASSWORD_HASH}}"

View File

@ -5,12 +5,14 @@ services:
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${APP_DATA_DIR}/data:/data
ports:
- ${APP_PORT}:8080
networks:
- tipi_main_network
environment:
- DOZZLE_NO_ANALYTICS=${DOZZLE_NO_ANALYTICS-true}
- DOZZLE_AUTH_PROVIDER=simple
labels:
# Main
traefik.enable: true