mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Possibility to protect some endpoints with basic-auth
user:passwd pair should be configured in restapi section of main configuration file in following format: restapi: auth: 'username:password' Plus implemented some simple routing mechanisms: GET /foo => do_GET_foo() POST /bar => do_POST_bar()
This commit is contained in:
@@ -4,6 +4,7 @@ scope: &scope batman
|
||||
restapi:
|
||||
listen: 127.0.0.1:8009
|
||||
connect_address: 127.0.0.1:8009
|
||||
auth: 'username:password'
|
||||
etcd:
|
||||
scope: *scope
|
||||
ttl: *ttl
|
||||
|
||||
Reference in New Issue
Block a user