- Clarified web handler name

- Implemented Configuration Loader with unauthorized error handling
- More elaborate test user config
- Use Viper Unmarshalling for User Config loading
- Centralized password hasing code
This commit is contained in:
2021-08-22 14:36:55 +02:00
parent 9f1b9f1690
commit 9a31bbc912
4 changed files with 98 additions and 17 deletions

View File

@ -1,16 +1,22 @@
username: test
password: $2a$10$7eYMA3zoyDb.2dM6bbeiqexxS9LhLz7XM.Q0EL0VHVbcxyfRkfp7.
router:
password: $2a$10$ymHFfGjKINWsUKwEo5xp.efN6DR6NkiRCXsbH4VWo0Nnzma8Yc.82
router:
DNS: brandfeld.dyn.local
NFT:
table: sshguard
set4: blackhole
set6: blackhole6
others:
- registerv4: true
- DNS: atlantis.dyn.local
v6iid: ::dead:beef:dead:beef
DNS: atlantis.dynlocal
registerv4: true
NFT:
table: sshguard
set4: blackhole
set6: blackhole6
- DNS: troya.dyn.local
v6iid: ::cafe:babe:deca:fbad
registerv4: false
NFT:
table: sshguard
set6: blackhole6