forked from MG-RAST/Shock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
shock-server.conf.template
68 lines (59 loc) · 1.88 KB
/
shock-server.conf.template
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
[Address]
# IP and port for api
# Note: use of port 80 may require root access
# 0.0.0.0 will bind Shock to all IP's
api-ip=0.0.0.0
api-port=7445
[Admin]
# Email address is displayed at base URL
# Comma-separated list of users with admin-level node query access
users=
[Anonymous]
# Controls an anonymous user's ability to read/write
# values: true/false
read=true
write=false
delete=false
[Auth]
# defaults to local user management with basis auth
#basic=true
# comment line above and uncomment below to use Globus Online as auth provider
globus_token_url=https://nexus.api.globusonline.org/goauth/token?grant_type=client_credentials
globus_profile_url=https://nexus.api.globusonline.org/users
cache_timeout = 60
#mgrast_oauth_url=https://api.metagenomics.anl.gov/user/authenticate
[External]
# URL displayed at base URL
api-url=http://localhost
[Log]
# Logs performance of some Shock operations
perf_log=false
rotate=true
[Mongodb]
# Mongodb configuration
# Hostnames and ports hosts=host1[,host2:port,...,hostN]
# attribute_indexes defines a list of fields in the Node's attribute struct that will be indexed
hosts=localhost
database=ShockDB
user=
password=
attribute_indexes=
[Paths]
# site directory should contain the documentation files
site=/usr/local/shock/site
# data directory should be a location for Shock to store data files
data=/usr/local/shock
# logs directory should be a location for Shock to store log files
logs=/var/log/shock
# local_paths is a path prefix to directories that users are allowed to import files into Shock from
local_paths=
# pidfile should be the path to a file that Shock can use to store the server's process ID
pidfile=
[Runtime]
# golang setting: The GOMAXPROCS variable limits the number of operating system threads that can execute user-level Go code simultaneously.
GOMAXPROCS=
[SSL]
enable=false
#key=<path_to_key_file>
#cert=<path_to_cert_file>