-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.ini
98 lines (75 loc) · 2.72 KB
/
production.ini
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
[app:main]
use: egg:notes_server
# API configuration
#
# Customize the key or leave it as the default. If the key is present without
# a secret, initializes the consumer in the API consumer table with a random
# secret.
#
# Set `api.endpoint`, `api.url`, or both. With `api.endpoint` as a path,
# configures an embedded annotator-store on that path. With `api.url`,
# urls can be generated with an alternate domain. With `api.url` but without
# `api.endpoint`, the storage can be delegated to a remote API server.
#
# If you embed the api with `api.endpoint` and use `api.url` to address route
# requests to this server through a different domain and path, tell pyramid
# that the api has a virtual root by ensuring the `X-Vhm-Root` HTTP header is
# passed with the value `/@@api_virtual` on requests to the API domain.
#
# Note: Using `api.url` without `api.endpoint` is not currently supported.
#
# Example:
# api.endpoint: /api
# api.url: https://api.example.com
# api.key: fdf077b5-c210-4744-b1e2-db4c577d195e
# api.secret: fb8557f0-34ba-462e-92af-54620a1d87c7
api.endpoint: /api
api.key: https://notes.webplatform.org
webplatform.authorize: https://oauth.accounts.webplatform.org/v1/authorization
webplatform.token: https://oauth.accounts.webplatform.org/v1/token
webplatform.session_read: https://profile.accounts.webplatform.org/v1/session/read
webplatform.session_recover: https://profile.accounts.webplatform.org/v1/session/recover
# ElasticSearch configuration
#es.host: http://localhost:9200
#es.index: annotator
# Authorization settings -- see pyramid_multiauth documentation
multiauth.policies: h.auth.local.oauth h.api
# Mail server configuration -- see the pyramid_mailer documentation
mail.default_sender: "Annotation Daemon" <no-reply@localhost>
#mail.host: localhost
#mail.port: 25
# Include any deployment-specific pyramid add-ons here
pyramid.includes:
pyramid_mailer
pyramid_tm
# Static asset configuration -- see webassets documentation
# Until the next pyramid_webassets, don't change these.
# Example:
# webassets.base_dir: /srv/www/static
# webassets.base_url: https://static.example.com
webassets.base_dir: notes_server:static
webassets.base_url: assets/notes-server
webassets.bundles: notes_server:assets.yaml h:assets.yaml
webassets.cache_max_age: 86400
webassets.coffee_no_bare: True
webassets.static_view: True
[server:main]
use: egg:gunicorn
worker_class: gevent
[loggers]
keys = root, gunicorn.error
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
handlers = console
[logger_gunicorn.error]
handlers =
qualname = gunicorn.error
[handler_console]
class = StreamHandler
args = ()
formatter = generic
[formatter_generic]
format = %(asctime)s [%(process)d] [%(levelname)s] %(message)s