forked from mmisw/orr-ont
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.orront.conf
154 lines (125 loc) · 5.04 KB
/
template.orront.conf
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
########################################################################################
#
# Template to create configuration file to be used by the ORR system at runtime.
#
# The ${?...} substitution syntax (note the question mark) allows to override settings
# via environment variables. For example, the following under the `mongo` section:
# host = localhost
# host = ${?MONGO_HOST}
# indicates that the default value for Mongo host ("localhost") will be overridden with
# the value of the environment variable `MONGO_HOST` if defined.
# See https://github.com/typesafehub/config#optional-system-or-env-variable-overrides
#
# The ${...} substitution syntax (note, *no* question mark) allows to resolve a value
# by taking it from another configuration entry. For example, in
# replyTo = ${email.account.username}
# the value for `replyTo` will the value assigned to `email.account.username`.
# See https://github.com/typesafehub/config#uses-of-substitutions
#
########################################################################################
# --------------------------------------------------------------------------------------------------
# There will be an "admin" user automatically created upon initial start of the ORR.
# This user will have all privileges on your ORR instance.
admin {
# password is required:
password = "admin"
password = ${?ADMIN_PASSWORD}
# email is required:
email = "[email protected]"
email = ${?ADMIN_EMAIL}
# optional: comma-separated list of additional usernames that will be granted "admin"
# privileges right upon corresponding account creation
#extra = "jdoe, foobar"
}
# --------------------------------------------------------------------------------------------------
# User authentication
auth {
# secret: required. A strong password to generate authentication tokens
secret = "some-strong-password-here"
}
# --------------------------------------------------------------------------------------------------
# Info about the deployment of this ORR instance
deployment {
# url: required. The URL of this ORR instance. No trailing slash.
url = "http://example.net/ont"
}
# --------------------------------------------------------------------------------------------------
# MongoDB
mongo {
host = "localhost"
host = ${?MONGO_HOST}
port = 27017
port = ${?MONGO_PORT}
db = "orr-ont"
db = ${?MONGO_DB_NAME}
}
# --------------------------------------------------------------------------------------------------
# files: managed file locations
files {
# base directory for all managed data
baseDirectory = "/opt/orr-ont-base-directory"
baseDirectory = ${?ORR_ONT_BASE_DIR}
}
# --------------------------------------------------------------------------------------------------
# AllegroGraph server (which supports the triple store and SPARQL endpoint)
agraph {
host = "localhost"
host = ${?AGRAPH_HOST}
port = 10035
port = ${?AGRAPH_PORT}
userName = "test"
userName = ${?AGRAPH_USERNAME}
password = "xyzzy"
password = ${?AGRAPH_PASSWORD}
repoName = "mmiorr"
repoName = ${?AGRAPH_REPO_NAME}
sparqlEndpoint = "http://"${agraph.host}":"${agraph.port}/repositories/${agraph.repoName}
# initDelay: (optional) Re-attempt triple store initialization after this delay.
#initDelay = "20 seconds"
}
# --------------------------------------------------------------------------------------------------
# branding: Note that most of the "branding" is actually done on the front-end side (orr-portal),
# but we need some pieces here mainly because of the emails that are sent to users.
# See also email section below.
branding {
# instanceName: used in email messages and other places.
instanceName = "My ORR"
# (optional) footer: HTML fragment to be inserted right before </body>
#footer = """
#<div>
# my footer
#</div>
#"""
}
# --------------------------------------------------------------------------------------------------
# (Required) email related information used for user account management and notifications.
email {
# account used for sending emails
account {
username = "[email protected]"
password = "thepassword"
}
# email server parameters
server {
host = "smtp.gmail.com"
port = 465
prot = "smtps"
debug = false
}
# info used to compose emails (when user resets password; notifications about registrations, etc):
from = ${branding.instanceName}" <"${email.account.username}">"
replyTo = ${email.account.username}
mailer = ${branding.instanceName}
}
# --------------------------------------------------------------------------------------------------
# recaptcha: optional but highly recommended
# See https://www.google.com/recaptcha/intro/index.html
recaptcha {
# If defined, the backend will validate recaptcha information provided by the user via request from front-end
#privateKey = "--your google recaptcha secret key--"
}
# --------------------------------------------------------------------------------------------------
# googleAnalytics property ID: optional
googleAnalytics {
#propertyId = "UA-XXXXX-Y"
}