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