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",
|
"author": "Amir Raminfar",
|
||||||
"source": "https://github.com/amir20/dozzle",
|
"source": "https://github.com/amir20/dozzle",
|
||||||
"form_fields": [
|
"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",
|
"type": "boolean",
|
||||||
"label": "Disable Google Analytics",
|
"label": "Disable Google Analytics",
|
||||||
|
@ -26,4 +45,4 @@
|
||||||
"arm64",
|
"arm64",
|
||||||
"amd64"
|
"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
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ${APP_DATA_DIR}/data:/data
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:8080
|
- ${APP_PORT}:8080
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- tipi_main_network
|
||||||
environment:
|
environment:
|
||||||
- DOZZLE_NO_ANALYTICS=${DOZZLE_NO_ANALYTICS-true}
|
- DOZZLE_NO_ANALYTICS=${DOZZLE_NO_ANALYTICS-true}
|
||||||
|
- DOZZLE_AUTH_PROVIDER=simple
|
||||||
labels:
|
labels:
|
||||||
# Main
|
# Main
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user