Permalink
Browse files

add https support.

  • Loading branch information...
1 parent 8a96880 commit e9cc7d004d946d261f8fbee8884e7f3cab4a1f44 @benoitc benoitc committed with Robert Newson Sep 13, 2011
Showing with 17 additions and 0 deletions.
  1. +2 −0 configure
  2. +15 −0 rel/overlay/etc/default.ini
View
2 configure
@@ -62,6 +62,7 @@ cat > rel/bigcouch.config << EOF
{user, "$BIGCOUCH_USER"}.
{node_name, "-name bigcouch"}.
{cluster_port, 5984}.
+{cluster_ssl, 6984}.
{backend_port, 5986}.
EOF
@@ -81,6 +82,7 @@ cat > rel/dev$i.config << EOF
{view_dir, "$DIRPATH/rel/tmpdata/dev$i"}.
{node_name, "-name dev$i@127.0.0.1"}.
{cluster_port, `expr 10000 \* $i + 5984`}.
+{cluster_ssl, `expr 10000 \* $i + 6984`}.
{backend_port, `expr 10000 \* $i + 5986`}.
EOF
done
View
15 rel/overlay/etc/default.ini
@@ -17,6 +17,21 @@ port = {{cluster_port}}
backlog = 512
docroot = {{prefix}}/share/www
+[chttps]
+;cert_file = /full/path/to/server_cert.pem
+;key_file = /full/path/to/server_key.pem
+;password = somepassword
+; set to true to validate peer certificates
+verify_ssl_certificates = false
+; 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 = /full/path/to/cacertf
+; The verification fun (optionnal) if not specidied, the default
+; verification fun will be used.
+;verify_fun = {Module, VerifyFun}
+ssl_certificate_max_depth = 1
+
[httpd]
port = {{backend_port}}
bind_address = 127.0.0.1

0 comments on commit e9cc7d0

Please sign in to comment.