-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.rb.example
69 lines (56 loc) · 2.6 KB
/
config.rb.example
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
=begin License
Copyright ©2011-2012 Pieter van Beek <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end
module EPIC
# Enter your own realm name (used in DIGEST and BASIC authentication):
REALM = 'YOUR_REALM_NAME'
# For DIGEST authentication a random hex- or base64-encoded string is needed:
OPAQUE = '1234567890abcdef1234567890abcdef'
# These argements are passed to Sequel::connect.
# Documentation can be found at http://sequel.rubyforge.org/documentation.html
SEQUEL_CONNECTION_ARGS = [
'jdbc:mysql://localhost/YOUR_DATABASE?user=YOUR_USER&password=YOUR_PASSWD',
:single_threaded => false
]
LOG_SETTINGS = {
# Supported Log-Levels are (DEBUG, ERROR, FATAL, INFO, WARN)
:log_level => 'error',
# Path to Log-File
:log_path => '/tmp/epic_log.txt',
# Define the maximum size of the log file in megabyte. 0 means no limit.
:max_log_mb => 100,
# Define the number of days for retention. 0 means no limit.
:max_log_days => 0
}
# Mark special prefixes for which handles cannot be deleted, if the policy
# "nodelete" is enforced. this is a regular expression
NO_DELETE = [ '12345' ]
# Set all profiles that are enforced on this server. There are 2 optional
# profiles which can be set:
# - "gwdgpid" ==> This profile provides support for sharing a prefix between
# multiple institutes. The users.rb MUST have the "institute" filled in for
# each institute using the same prefix. The format of the institute code
# is described in src/epic_profile.rb.
# - "nodelete" ==> This profile disables the deletion of all pids that match
# some regular expression. The "NO_DELETE" parameter has this info.
ENFORCED_PROFILES = [
# "gwdgpid",
"nodelete"
]
# Define the generated used to create suffixes. The default is 'uuid". An
# other method is "gwdgpid". It goes together with the profile "gwdgpid".
DEFAULT_GENERATOR = 'uuid'
# The version number of this release:
VERSION='2.3'
# And a link to more information about this version:
VERSION_URL='https://github.com/CatchPlus/EPIC-API-v2/issues?milestone=10&state=closed'
end