Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var options = {
- key: fs.readFileSync(__dirname + '/keys/spdy-key.pem'),
- cert: fs.readFileSync(__dirname + '/keys/spdy-cert.pem'),
- ca: fs.readFileSync(__dirname + '/keys/spdy-ca.pem'),
- };
- [httpd]
- ;port = 5984
- ;bind_address = 127.0.0.1
- ; 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, 262144}, {sndbuf, 262144}, {nodelay, true}]
- ; Uncomment next line to trigger basic-auth popup on unauthorized requests.
- WWW-Authenticate = Basic realm="administrator"
- ; Uncomment next line to set the configuration modification whitelist. Only
- ; whitelisted values may be changed via the /_config URLs. To allow the admin
- ; to change this value over HTTP, remember to include {httpd,config_whitelist}
- ; itself. Excluding it from the list would require editing this file to update
- ; the whitelist.
- ;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]
- [httpd_global_handlers]
- ;_google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>}
- [couch_httpd_auth]
- ; If you set this to true, you should also uncomment the WWW-Authenticate line
- ; above. If you don't configure a WWW-Authenticate header, CouchDB will send
- ; Basic realm="server" in order to prevent you getting logged out.
- require_valid_user = true
- [log]
- ;level = debug
- [log_level_by_module]
- ; In this section you can specify any of the four log levels 'none', 'info',
- ; 'error' or 'debug' on a per-module basis. See src/*/*.erl for various
- ; modules.
- ;couch_httpd = error
- [os_daemons]
- ; For any commands listed here, CouchDB will attempt to ensure that
- ; the process remains alive. Daemons should monitor their environment
- ; to know when to exit. This can most easily be accomplished by exiting
- ; when stdin is closed.
- ;foo = /path/to/command -with args
- [daemons]
- ; enable SSL support by uncommenting the following line and supply the PEM's below.
- ; the default ssl port CouchDB listens on is 6984
- httpsd = {couch_httpd, start_link, [https]}
- [ssl]
- cert_file = /srv/www/[appname]/keys/cert.pem
- key_file = /srv/www/[appname]/keys/key.pem
- ;password = somepassword
- ; set to true to validate peer certificates
- ;verify_ssl_certificates = true
- ; Path to file containing PEM encoded CA certificates (trusted
- ; certificates used for verifying a peer certificate). May be omitted if
- ; you do not want to verify the peer.
- ; cacert_file = /srv/www/[appname]/keys/ca.pem
- ; The verification fun (optional) if not specified, the default
- ; verification fun will be used.
- ;verify_fun = {Module, VerifyFun}
- ; maximum peer certificate depth
- ssl_certificate_max_depth = 1
- * About to connect() to 127.0.0.1 port 6984 (#0)
- * Trying 127.0.0.1...
- * Adding handle: conn: 0x181eab0
- * Adding handle: send: 0
- * Adding handle: recv: 0
- * Curl_addHandleToPipeline: length: 1
- * - Conn 0 (0x181eab0) send_pipe: 1, recv_pipe: 0
- * Connected to 127.0.0.1 (127.0.0.1) port 6984 (#0)
- * successfully set certificate verify locations:
- * CAfile: none
- CApath: /etc/ssl/certs
- * SSLv3, TLS handshake, Client hello (1):
- * Unknown SSL protocol error in connection to 127.0.0.1:6984
- * Closing connection 0
- curl: (35) Unknown SSL protocol error in connection to 127.0.0.1:6984
- var options = {
- key: fs.readFileSync(__dirname + '/keys/spdy-key.pem'),
- cert: fs.readFileSync(__dirname + '/keys/spdy-cert.pem'),
- ca: fs.readFileSync(__dirname + '/keys/spdy-ca.pem'),
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement