forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.ini
132 lines (101 loc) · 3.14 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[app:main]
use: egg:h
# 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: 00000000-0000-0000-0000-000000000000
# ElasticSearch configuration
#es.host: http://localhost:9200
#es.index: annotator
# User and group framework settings -- see horus documentation
horus.login_redirect: /
horus.logout_redirect: /
#horus.activate_redirect: /
#horus.register_redirect: /
#horus.autologin: False
#horus.allow_email_auth: False
#horus.require_activation: True
# 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:
deform_bootstrap
pyramid_deform
pyramid_mailer
# Change or append to override templates
pyramid_deform.template_search_path: h:templates/deform
# Session settings -- see the beaker documentation
# Example:
# session.type = file
# session.data_dir = %(here)s/data/sessions/data
# session.lock_dir = %(here)s/data/sessions/lock
# session.secret: 535510n_53cr37
# session.secure: True
#session.type: memory
# SQLAlchemy configuration -- See SQLAlchemy documentation
sqlalchemy.url: sqlite:///h.db
# 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: %(here)s/h
webassets.base_url: /assets
webassets.coffee_no_bare: True
[server:main]
use: egg:gunicorn
worker_class: gevent
[loggers]
keys = root, gunicorn.access, gunicorn.error, h, sqlalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_gunicorn.error]
level = WARN
handlers =
qualname = gunicorn.error
[logger_gunicorn.access]
level = INFO
handlers =
qualname = gunicorn.access
[logger_h]
level = WARN
handlers =
qualname = h
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[handler_console]
class = StreamHandler
args = (sys.stderr,)
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s