diff options
author | Jiahui Li <54631519+jiahuili430@users.noreply.github.com> | 2021-05-17 07:41:45 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2021-05-24 18:23:06 -0400 |
commit | f1dd5fe195715f72a1dc78712445b5af889d30a9 (patch) | |
tree | a66120edc6bbf73adb5e5ba066b349dc545ad521 /rel/overlay | |
parent | e632b45cc556281887361f3e25196ddf5e800363 (diff) | |
download | couchdb-f1dd5fe195715f72a1dc78712445b5af889d30a9.tar.gz |
Moved some config options from httpd to chttpd
Diffstat (limited to 'rel/overlay')
-rw-r--r-- | rel/overlay/etc/default.ini | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini index a9698e250..614c14e55 100644 --- a/rel/overlay/etc/default.ini +++ b/rel/overlay/etc/default.ini @@ -147,6 +147,26 @@ max_db_number_for_dbs_info_req = 100 ; prevent non-admins from accessing /_all_dbs ; admin_only_all_dbs = true +; These options are moved from [httpd] +;secure_rewrites = true +;allow_jsonp = false + +;enable_cors = false +;enable_xframe_options = false + +; CouchDB can optionally enforce a maximum uri length; +;max_uri_length = 8000 + +;changes_timeout = 60000 +;config_whitelist = +;rewrite_limit = 100 +;x_forwarded_host = X-Forwarded-Host +;x_forwarded_proto = X-Forwarded-Proto +;x_forwarded_ssl = X-Forwarded-Ssl + +; Maximum allowed http request size. Applies to both clustered and local port. +;max_http_request_size = 4294967296 ; 4GB + ;[jwt_auth] ; List of claims to validate ; can be the name of a claim like "exp" or a tuple if the claim requires @@ -190,26 +210,17 @@ database_prefix = userdb- port = {{backend_port}} bind_address = 127.0.0.1 authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler} -secure_rewrites = true -allow_jsonp = false + ; Options for the MochiWeb HTTP server. ;server_options = [{backlog, 128}, {acceptor_pool_size, 16}] ; For more socket options, consult Erlang's module 'inet' man page. ;socket_options = [{recbuf, undefined}, {sndbuf, 262144}, {nodelay, true}] socket_options = [{sndbuf, 262144}] -enable_cors = false -enable_xframe_options = false -; CouchDB can optionally enforce a maximum uri length; -; max_uri_length = 8000 -; changes_timeout = 60000 -; config_whitelist = -; max_uri_length = -; rewrite_limit = 100 -; x_forwarded_host = X-Forwarded-Host -; x_forwarded_proto = X-Forwarded-Proto -; x_forwarded_ssl = X-Forwarded-Ssl -; Maximum allowed http request size. Applies to both clustered and local port. -max_http_request_size = 4294967296 ; 4GB + +; These settings were moved to [chttpd] +; secure_rewrites, allow_jsonp, enable_cors, enable_xframe_options, +; max_uri_length, changes_timeout, config_whitelist, rewrite_limit, +; x_forwarded_host, x_forwarded_proto, x_forwarded_ssl, max_http_request_size ; [httpd_design_handlers] ; _view = |