Skip to content

Commit

Permalink
feat: Added couch configs to enable proxy authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Robert <[email protected]>
  • Loading branch information
rmayore committed Nov 26, 2024
1 parent a9aea1e commit ee7bcf5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions couchdb/10-docker-default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee7bcf5

Please sign in to comment.