Skip to content

Commit c331dc9

Browse files
committed
feat: Added couch configs to enable proxy authentication
Signed-off-by: Robert <[email protected]>
1 parent a9aea1e commit c331dc9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

couchdb/10-docker-default.ini

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ bind_address = 0.0.0.0
1818
server_options = [{recbuf, 262144}]
1919
socket_options = [{sndbuf, 262144}, {nodelay, true}]
2020
require_valid_user = true
21+
authentication_handlers = {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, proxy_authentication_handler}, {chttpd_auth, default_authentication_handler}
22+
23+
[chttpd_auth]
24+
require_valid_user = true
25+
secret = 5ec56423-0856-4b13-8ab7-9b476fea2c39 ; CHANGE ME - proxy secret
26+
x_auth_roles = X-Auth-CouchDB-Roles ; http header name for passing the comma separated couch user roles
27+
x_auth_username = X-Auth-CouchDB-UserName ; http header name for passing the couch username
28+
proxy_use_secret = true
29+
x_auth_token = X-Auth-CouchDB-Token ; http header name for passing the proxy token
2130

2231
[httpd]
2332
secure_rewrites = false
@@ -35,7 +44,7 @@ verify_ssl_certificates = false
3544
ssl_certificate_max_depth = 4
3645

3746
[cluster]
38-
q=12
47+
q=6
3948
n=1
4049

4150
[attachments]

0 commit comments

Comments
 (0)