summaryrefslogtreecommitdiff
path: root/couchdb_scripts_defaults.conf
diff options
context:
space:
mode:
authorroot <root@urchin.dev.bitmask.net>2013-10-30 22:30:37 +0000
committerroot <root@urchin.dev.bitmask.net>2013-10-30 22:30:37 +0000
commit93930972c870b53ac24e4d6d27649e9979950ecb (patch)
tree587cfab251a0d86305555af0a89d9990660ca203 /couchdb_scripts_defaults.conf
parentb634e8f6aeaa793883c101648d8fc8818d5d74ae (diff)
renamed: couchdb-scripts-defaults.conf -> couchdb_scripts_defaults.conf
Diffstat (limited to 'couchdb_scripts_defaults.conf')
-rw-r--r--couchdb_scripts_defaults.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/couchdb_scripts_defaults.conf b/couchdb_scripts_defaults.conf
new file mode 100644
index 0000000..e7ad685
--- /dev/null
+++ b/couchdb_scripts_defaults.conf
@@ -0,0 +1,19 @@
+NETRC_FILE='/etc/couchdb/couchdb.netrc'
+
+OPTS="--netrc-file $NETRC_FILE -HContent-Type:application/json -s"
+CURL="curl $OPTS "
+
+# wget needs --auth-no-challenge, see bugs.debian.org/600169
+WGET_OPTS='--auth-no-challenge -q -O -'
+
+
+URL='http://127.0.0.1:5984'
+BACKEND_URL='http://127.0.0.1:5986'
+DUMPDIR='/var/backups/couchdb'
+TMPPREFIX='tmp'
+
+# replication uses
+user=`cat /etc/couchdb/couchdb.netrc | cut -d ' ' -f 4`
+pw=`cat /etc/couchdb/couchdb.netrc | cut -d ' ' -f 6`
+auth_url="http://${user}:${pw}@127.0.0.1:5984"
+