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
|
# File 'lib/generators/triannon/install_generator.rb', line 11
def create_triannon_yml_file
default_yml =<<-YML
development:
ldp:
url: http://localhost:8983/fedora/rest
# uber_container: LDP BasicContainer that will have anno containers as members
uber_container: anno
# anno_containers: LDP BasicContainers that will have individual annotations as members
# the container names here will also map to paths in the triannon url, e.g.
# "foo" here will mean you add a foo anno by POST to http://your.triannon-server.com/annotations/foo
# and you get the foo anno by GET to http://your.triannon-server.com/annotations/foo/(anno_uuid)
anno_containers:
foo:
bar:
auth:
users: []
workgroups:
- org:wg-A
- org:wg-B
solr_url: http://localhost:8983/solr/triannon
triannon_base_url: http://your.triannon-server.com/annotations/
max_solr_retries: 5
base_sleep_seconds: 1
max_sleep_seconds: 5
authorized_clients:
clientA: secretA
clientB: secretB
# expiry values are in seconds
client_token_expiry: 120
access_token_expiry: 3600
test: &test
ldp:
url: http://localhost:8983/fedora/rest
uber_container: anno
anno_containers:
foo:
bar:
auth:
users: []
workgroups:
- org:wg-A
- org:wg-B
solr_url: http://localhost:8983/solr/triannon
triannon_base_url: http://your.triannon-server.com/annotations/
authorized_clients:
clientA: secretA
clientB: secretB
# expiry values are in seconds
client_token_expiry: 120
access_token_expiry: 3600
production:
ldp:
url:
uber_container: anno
anno_containers:
solr_url:
triannon_base_url:
authorized_clients:
# expiry values are in seconds
client_token_expiry: 120
access_token_expiry: 3600
YML
create_file 'config/triannon.yml', default_yml
end
|