From ee7bcf5147ec88d4ae1822b3d80b35fb445ddcb7 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 26 Nov 2024 11:48:17 +0300 Subject: [PATCH] feat: Added couch configs to enable proxy authentication Signed-off-by: Robert --- couchdb/10-docker-default.ini | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/couchdb/10-docker-default.ini b/couchdb/10-docker-default.ini index 92e42a2863e..692cf95ec54 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