summaryrefslogtreecommitdiff
path: root/couchdb_scripts_defaults.conf
blob: 22ba01edcfeb3e903eb3ff77125fe983097ed540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
NETRC_FILE="${HOME}/.netrc"

# wget needs --auth-no-challenge, see bugs.debian.org/600169
# wget doesn't accept a custom netrc location (like curl does), 
# please make sure to provide a ~/.netrc
WGET_OPTS='--auth-no-challenge -q -O -'

# todo: move from curl to wget
CURL_OPTS="--netrc -HContent-Type:application/json -s"
CURL="curl $CURL_OPTS "

URL='http://127.0.0.1:5984'
DUMPDIR='/var/backups/couchdb'
TMPPREFIX='tmp'

# only used for replication
BACKEND_URL='http://127.0.0.1:5986'
couchdb_user=`cat $NETRC_FILE | cut -d ' ' -f 4`
couchdb_pw=`cat $NETRC_FILE | cut -d ' ' -f 6`
couchdb_auth_url="http://${couchdb_user}:${couchdb_pw}@127.0.0.1:5984"

# space separated list of excluded DBs for dumping
# checked by couchdb_dumpall.sh 
EXCLUDE_DBS=''

# source custom defaults if present
[ -f "/etc/leap/couchdb_scripts_defaults.conf" ] && . "/etc/leap/couchdb_scripts_defaults.conf"
[ -f "${HOME}/.couchdb_scripts_defaults.conf" ] && . "${HOME}/.couchdb_scripts_defaults.conf"
# don't edit below this line, or your custom variables will not
# properly override variables in this config file