Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smartpublicbuilding
openhab-pb-stack
Commits
932fa690
Commit
932fa690
authored
Jan 18, 2019
by
dobli
Browse files
modified example to enable bcrypt in treafik and external users file
parent
eda28a58
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
932fa690
...
@@ -121,7 +121,9 @@ The openhab-pb stack consists of multiple configuration files that need to be av
...
@@ -121,7 +121,9 @@ The openhab-pb stack consists of multiple configuration files that need to be av
-
*traefik.toml*
: basic traefik configuration
-
*traefik.toml*
: basic traefik configuration
-
copy from template folder
-
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**
**volumerize**
...
...
configs/traefik/traefik.toml
View file @
932fa690
...
@@ -30,7 +30,8 @@ defaultEntryPoints = ["http"]
...
@@ -30,7 +30,8 @@ defaultEntryPoints = ["http"]
[entryPoints.http]
[entryPoints.http]
address
=
":80"
address
=
":80"
[entryPoints.http.auth.basic]
[entryPoints.http.auth.basic]
users
=
["ohuser:$apr1$ffMQdoZd$1uEyKkwOKH3QS9ovOAzYj1"]
usersFile
=
"/etc/traefik/traefik_users"
#users = ["ohuser:$1$A0mm9w.i$2tr8KLucsPlN6rhhdVDpw0"]
# [retry]
# [retry]
...
...
configs/traefik/traefik_users
0 → 100644
View file @
932fa690
ohuser:$2b$12$Y7Jz7kwlWZJ8gtX7lwP1ZeAuAgahYQARu3pKN3BRBj07rWkHKw5mK
docker-compose.yml
View file @
932fa690
...
@@ -30,8 +30,10 @@ configs:
...
@@ -30,8 +30,10 @@ configs:
file
:
./configs/ssh/id_rsa
file
:
./configs/ssh/id_rsa
sftp_known_hosts
:
sftp_known_hosts
:
file
:
./configs/ssh/known_hosts
file
:
./configs/ssh/known_hosts
traefik_
proxy
:
traefik_
config
:
file
:
./configs/traefik/traefik.toml
file
:
./configs/traefik/traefik.toml
traefik_users
:
file
:
./configs/traefik/traefik_users
nodered_settings
:
nodered_settings
:
file
:
./configs/nodered/nodered_settings.js
file
:
./configs/nodered/nodered_settings.js
nodered_package
:
nodered_package
:
...
@@ -382,8 +384,10 @@ services:
...
@@ -382,8 +384,10 @@ services:
networks
:
networks
:
-
habnet
-
habnet
configs
:
configs
:
-
source
:
traefik_
proxy
-
source
:
traefik_
config
target
:
/etc/traefik/traefik.toml
target
:
/etc/traefik/traefik.toml
-
source
:
traefik_users
target
:
/etc/traefik/traefik_users
deploy
:
deploy
:
mode
:
global
mode
:
global
placement
:
placement
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment