forked from MariosPapasofokli/databrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.conf
More file actions
105 lines (101 loc) · 3.58 KB
/
example.conf
File metadata and controls
105 lines (101 loc) · 3.58 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Example settings for databrary.conf
# This file will be looked for in the current directory whenever databrary is run, or where specied by the -c flag.
## Secret key used to sign tokens, cookies, etc. Should be long random string in production environment.
secret = "bob"
## Port to listen on (as http or https, as per ssl settings)
port = 8642
ssl {
## SSL certificate and private key for https. If these are not specified, http will be used.
## these should be in the same directory as this conf file
#cert = ["certificate.pem", "chain1.pem", ...]
#key = "key.pem"
}
log {
## Where to log general messages
messages {
## this is an absolute path or a std file descriptor
file = "stderr"
rotate = 100
}
## Where to log all HTTP access
access {
## this is an absolute path or a std file descriptor
file = "stdout"
##
rotate = 100
}
}
db {
## Host and port, or socket path of postgres
host = "localhost"
port = 5432
## unix socket if your postgres server isn't listening on a tcp port
#sock = "/var/run/postgresql/.s.PGSQL.5432"
## Database user and password (if necessary), which must already exist in postgres
user = "databrary"
pass = "databrary123"
## Database name
db = "databrary"
## Verbosely log all database activity
## this is a very very useful flag. uncomment it and you'll see all of the
## template haskell generated sql queries
#debug = true
}
store {
## uncomment this message and the app will display it (appropriately formatted and styled) instead of the frontpage
#DOWN = "Databrary is unavailable due to NYU network issues. We expect full service to be restored shortly."
master = "/home/max/databrary/nyu/store"
#fallback
upload = "/home/max/databrary/nyu/upload"
temp = "/home/max/databrary/nyu/tmp"
stage = "/home/max/databrary/nyu/stage"
cache = "/home/max/databrary/nyu/cache"
## if this block is commented then transcoding will happen locally
transcode {
## the ssh host that does the transcoding. this corresponds to an .ssh/hosts entry
#host = "hpc"
## the mount point of hpc stuff. on our system this is at /nyu/hpc and then there's a symlink
## in the same directory as this conf file. generally it can be an absolute path
#mount = "/home/max/databrary/nyu/hpc"
## the directory inside the mount folder
#dir = "databrary"
}
}
solr {
## Path to solr binary, defaulting to "solr" in PATH.
#bin = "/usr/local/bin/solr"
## Alternatively, a host to connect to an already-running solr (untested).
run = false
host = "localhost"
## Port solr should listen on.
port = 8983
## Directory to store solr cores.
home = "/home/max/databrary/solr"
## Name of solr core to use.
core = "databrary_core"
## Log file for solr
log = "/home/max/databrary/databrary_logs/solr_log"
}
static {
## Email to send unknown authorization requests to
authorize = "bob@nyu.edu"
## Email to send volume curation assistance requests to
assist = "bob@nyu.edu"
## Remote service to generate investigator agreements during registration (see www/databrary/internal)
#fillin = "http://databrary.org/internal/investigator.cgi"
## Key to use to authenticate to fillin service.
#key = ""
}
ezid {
## Shoulder for ezid namespace, under which to register new DOIs, if specified.
#ns = "doi:10.17910/B7"
## EZID credentials
#user = "apitest"
#pass = "apitest"
}
notification {
## Regex for notification emails: only emails matching this will be sent.
filter = "*"
## Optional email address to copy all notification emails to (whether they pass filter or not).
copy = "bob@nyu.edu"
}