Commit 932fa690 authored by dobli's avatar dobli
Browse files

modified example to enable bcrypt in treafik and external users file

parent eda28a58
No related merge requests found
Showing with 12 additions and 4 deletions
+12 -4
......@@ -121,7 +121,9 @@ The openhab-pb stack consists of multiple configuration files that need to be av
- *traefik.toml*: basic traefik configuration
- copy from template folder
- entryPoints.http.auth.basic contains users generated with htpasswd
- entryPoints.http.auth.basic contains usersFile that describes the path to a htpasswd file
- *traefik_users*: htpasswd style file that contains users and hashed passwords
- generated
**volumerize**
......
......@@ -30,7 +30,8 @@ defaultEntryPoints = ["http"]
[entryPoints.http]
address = ":80"
[entryPoints.http.auth.basic]
users = ["ohuser:$apr1$ffMQdoZd$1uEyKkwOKH3QS9ovOAzYj1"]
usersFile = "/etc/traefik/traefik_users"
#users = ["ohuser:$1$A0mm9w.i$2tr8KLucsPlN6rhhdVDpw0"]
# [retry]
......
ohuser:$2b$12$Y7Jz7kwlWZJ8gtX7lwP1ZeAuAgahYQARu3pKN3BRBj07rWkHKw5mK
......@@ -30,8 +30,10 @@ configs:
file: ./configs/ssh/id_rsa
sftp_known_hosts:
file: ./configs/ssh/known_hosts
traefik_proxy:
traefik_config:
file: ./configs/traefik/traefik.toml
traefik_users:
file: ./configs/traefik/traefik_users
nodered_settings:
file: ./configs/nodered/nodered_settings.js
nodered_package:
......@@ -382,8 +384,10 @@ services:
networks:
- habnet
configs:
- source: traefik_proxy
- source: traefik_config
target: /etc/traefik/traefik.toml
- source: traefik_users
target: /etc/traefik/traefik_users
deploy:
mode: global
placement:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment