-
Notifications
You must be signed in to change notification settings - Fork 0
/
jatos.conf
229 lines (164 loc) · 8.05 KB
/
jatos.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# This is JATOS' configuration
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Do not remove this line (it contains the default configuration)
include "application.conf"
# HTTP address and port
# ~~~~~~~~~~~~~~~~~~~~~
# Defaults are 0.0.0.0 (all local IPs) and 9000.
# Old style properties beginning with 'play.server.http' or just 'http' are deprecated (but still accepted) and the new
# properties beginning with 'jatos.http' should be used instead.
#jatos.http.address = "192.168.0.1"
#jatos.http.port = 80
# HTTP server timeouts
# ~~~~~~~~~~~~~~~~~~~~
# The time after which an idle connection will be automatically closed.
# Set to `infinite` to completely disable idle connection timeouts.
# Default is infinite.
#play.server.http.idleTimeout = 60s
# How long a request takes until it times out. Set to null or "infinite" to disable the timeout.
#play.server.akka.requestTimeout = 40s
# URL base path configuration
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Add a base URL to the root of the application path. Default is "/".
# It will be the prefix for each URL, e.g. /jatos/test -> /myBasePath/jatos/test.
# It has to start and end with "/".
# The old style property 'play.http.context' is deprecated (but still accepted) and the new property 'jatos.urlBasePath'
# should be used instead.
#jatos.urlBasePath = "/somepath/"
# Trusted certificates (e.g. for encrypted LDAP)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# It's possible to add multiple certificates
# 'type' can be PKCS12, JKS or PEM
#play.ws.ssl.trustManager.stores = [ { type = "PEM", path = "conf/certs/ca.pem" } ]
# JATOS' study assets root directory path
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Default is ./study_assets_root
#jatos.studyAssetsRootPath = "~/jatos_study_assets_root"
# JATOS' tmp directory path
# ~~~~~~~~~~~~~~~~~~~~~~~~~
# Path to JATOS' temporary directory. E.g. used to temporarily store studies during import.
# By default the system's tmp directory is used (in Linux/Unix '/tmp', in Windows 'c:\temp')
#jatos.tmpPath = '/my/tmp/dir'
# JATOS application logs
# ~~~~~~~~~~~~~~~~~~~~~~
# Location in the file system.
# By default it's in JATOS' folder under 'logs'.
#jatos.logs.path = "/my/dir/logs"
# Filename of the log files without suffix '.log'.
# Default is 'application'.
#jatos.logs.filename = "my_jatos"
# Logger appender: can be either ASYNCFILE (writes log into file) or ASYNCSTDOUT (writes log into application's stdout)
# Default is 'ASYNCFILE'.
#jatos.logs.appender = "ASYNCSTDOUT"
# Study logs
# ~~~~~~~~~~
# To disable study logging put false (default is true)
#jatos.studyLogs.enabled = false
# Path where JATOS stores its logs for each study (Default is ./study_logs)
#jatos.studyLogs.path = "~/jatos_study_logs"
# Study members
# ~~~~~~~~~~~~~
# Allow to add all users that exist on this JATOS to be added at once as members of a study (default is false)
#jatos.studyMembers.allowAddAllUsers = true
# Results pagination
# ~~~~~~~~~~~~~~~~~~
# Maximal number of results to be fetched from the DB at once (default is 10)
#jatos.maxResultsDbQuerySize = 5
# Result Data
# ~~~~~~~~~~~
# Maximum size of the result data of one component run (default is 5MB)
#jatos.resultData.maxSize = 10MB
# Result Uploads
# ~~~~~~~~~~~~~~
# To disable result file uploading put false (default is true)
#jatos.resultUploads.enabled = false
# Path where JATOS stores uploads from study runs (Default is ./result_uploads)
#jatos.resultUploads.path = "~/jatos_result_uploads"
# Max file size for one uploaded file (default is 30 MB)
#jatos.resultUploads.maxFileSize = 100MB
# Limit of all files per study run (default is 50MB)
#jatos.resultUploads.limitPerStudyRun = 100MB
# Superuser
# ~~~~~~~~~
# If true an Admin user can grant the role Superuser to a user. This role allows a user to access ANY study as if they
# were a study member user (incl. accessing result data or deleting the study itself). Default is false.
#jatos.user.role.allowSuperuser = true
# LDAP authentication
# ~~~~~~~~~~~~~~~~~~~
# LDAP url
# Leave empty if you have no authentication via LDAP (default is "").
#jatos.user.authentication.ldap.url = "ldap://my.ldap.org:389"
# LDAP base DN(s) (distinguished name)
# Can be one DN with a single string (e.g. "ou=students,dc=example,dc=com") or a list of DNs
# (e.g. ["ou=students,dc=example,dc=com", "ou=scientists,dc=example,dc=com"]).
# Leave empty if you have no authentication via LDAP (default is "").
#jatos.user.authentication.ldap.basedn = "dc=example,dc=com"
# DN (distinguished name) of an (optional) admin user that has the right to search LDAP for other users. Some LDAP need this because it is impossible to bind directly to an 'uid'.
# Leave empty if you have no authentication via LDAP (default is "").
#jatos.user.authentication.ldap.admin.dn = "cn=read-only-admin,dc=example,dc=com"
# Password of the admin user
# Leave empty if you have no authentication via LDAP (default is "").
#jatos.user.authentication.ldap.admin.password = "password"
# Time in ms to wait for a response from LDAP server (default 5000)
#jatos.user.authentication.ldap.timeout = 10000
# Google OAuth sign-in button
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Google OAuth client ID (https://developers.google.com/identity/sign-in/web/sign-in)
#jatos.user.authentication.oauth.googleClientId = "1234567890-abc123abc123.apps.googleusercontent.com"
# User password restrictions
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
# Password length (default is 7)
#jatos.user.password.length = 8
# Password strength: one of the following (default is 0)
# 0: No restrictions on characters
# 1: At least one Latin letter and one number
# 2: At least one Latin letter, one number and one special character (#?!@$%^&*-)
# 3: At least one uppercase Latin letter, one lowercase Latin letter, one number and one special character (#?!@$%^&*-)
#jatos.user.password.strength = 3
# Database configuration - MySQL database
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Old style DB properties beginning with 'db.default' are deprecated and the new properties beginning with 'jatos.db'
# should be used instead.
#jatos.db.url = "jdbc:mysql://localhost/jatos?characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC"
#jatos.db.username = "myusername"
#jatos.db.password = "mypassword"
#jatos.db.driver = "com.mysql.cj.jdbc.Driver"
# This property needs to be set to true if you are running multiple JATOS nodes in a cluster.
#jatos.multiNode = true
# User session configuration
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
# Session timeout in minutes (default is 1440)
#jatos.userSession.timeout = 1440
# Session timeout after inactivity in minutes (default is 60)
#jatos.userSession.inactivity = 60
# Secure session cookie (set true to restrict user access to HTTPS)
#play.http.session.secure = false
# ID cookies configuration
# ~~~~~~~~~~~~~~~~~~~~~~~~
# If true the IDCookies' 'secure' attribute is set (similar to play.server.session.secure) (default is false)
#jatos.idCookies.secure = true
# Defines the IDCookies' 'SameSite' attribute: 'None', 'Lax', or 'Strict' (default is 'None')
# 'Strict' makes the usage of external recruiting tools (like MTurk) impossible
#jatos.idCookies.sameSite = "Lax"
# PID file location
# ~~~~~~~~~~~~~~~~~
#play.pidfile.path = "/var/run/jatos.pid"
# Home page
# ~~~~~~~~~
# URL to some static HTML that will be shown on the home page instead of the default welcome message.
# If empty the default welcome message is shown.
#jatos.brandingUrl = "https://mydomain.com/foobar-university-welcome-page.html"
# URL link to the 'terms of use' that will be shown in a info box on the home page
# If empty it's not shown
#jatos.termsOfUseUrl = "https://mydomain.com/my-terms-of-use.html"
# Study Admin page
# ~~~~~~~~~~~~~~~~
# Enable/disable some columns in the study admin table. Sometimes the calculation of those columns takes too much time
# due to slow database or file system.
#jatos.studyAdmin.showStudyAssetsSize = false # Default is true
#jatos.studyAdmin.showResultDataSize = true # Default is false
#jatos.studyAdmin.showResultFileSize = true # Default is false
# JATOS API
# ~~~~~~~~~
# Disable the JATOS API. By default its allowed (true).
#jatos.api.allowed = false