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:
parent
8b9e5ba593
commit
4376984515
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
4
apps/dozzle/data/users.yml.template
Normal file
4
apps/dozzle/data/users.yml.template
Normal file
|
@ -0,0 +1,4 @@
|
|||
users:
|
||||
{{DOZZLE_USERNAME}}:
|
||||
name: {{DOZZLE_USERNAME}}
|
||||
password: "{{DOZZLE_PASSWORD_HASH}}"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user