diff --git a/couchdb/10-docker-default.ini b/couchdb/10-docker-default.ini index 92e42a2863..692cf95ec5 100644 --- a/couchdb/10-docker-default.ini +++ b/couchdb/10-docker-default.ini @@ -18,6 +18,15 @@ bind_address = 0.0.0.0 server_options = [{recbuf, 262144}] socket_options = [{sndbuf, 262144}, {nodelay, true}] require_valid_user = true +authentication_handlers = {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, proxy_authentication_handler}, {chttpd_auth, default_authentication_handler} + +[chttpd_auth] +require_valid_user = true +secret = 5ec56423-0856-4b13-8ab7-9b476fea2c39 ; CHANGE ME - proxy secret +x_auth_roles = X-Auth-CouchDB-Roles ; http header name for passing the comma separated couch user roles +x_auth_username = X-Auth-CouchDB-UserName ; http header name for passing the couch username +proxy_use_secret = true +x_auth_token = X-Auth-CouchDB-Token ; http header name for passing the proxy token [httpd] secure_rewrites = false