This repository has been archived by the owner on Nov 11, 2021. It is now read-only.
/
sample.ini
153 lines (122 loc) · 3.38 KB
/
sample.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###
[app:main]
use = egg:cherubplay
pyramid.reload_templates = true
pyramid.debug_authorization = true
pyramid.debug_notfound = true
pyramid.debug_routematch = true
pyramid.default_locale_name = en
pyramid.includes =
pyramid_celery
pyramid_debugtoolbar
pyramid_mako
pyramid_mailer
pyramid_tm
sqlalchemy.url =
mako.directories = cherubplay:templates
cherubplay.socket_login = /tmp/redis.sock
cherubplay.socket_pubsub = /tmp/redis.sock
cherubplay.socket_search = /tmp/cherubplay_search.sock
cherubplay.socket_chat = /tmp/cherubplay_chat.sock
# Keys for generating a VAPID claim.
# See https://blog.mozilla.org/services/2016/08/23/sending-vapid-identified-webpush-notifications-via-mozillas-push-service/
push.public_key =
push.private_key =
push.admin_email =
mail.host =
mail.port =
# Path to an HTML file containing the site rules.
content.rules =
# These tags are shown as checkboxes in the new request form.
checkbox_tags.warning =
checkbox_tags.fandom =
checkbox_tags.gender =
checkbox_tags.fandom_wanted =
checkbox_tags.gender_wanted =
# Path to save exported files at.
export.destination =
# URL which exported files are served from.
export.url =
export.expiry_days = 3
#disable_registration = True
#shutdown.front_page = True
#shutdown.prompts = True
#shutdown.user_connections = True
#shutdown.directory = True
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
[uwsgi]
http-socket = 0.0.0.0:8000
threads=10
[celery]
BROKER_URL =
CELERY_IMPORTS = cherubplay.tasks
CELERY_TASK_SERIALIZER = json
CELERY_ACCEPT_CONTENT = json
CELERY_RESULT_BACKEND = redis://localhost
[celerybeat:reap_requests]
task = cherubplay.tasks.reap_requests
type = timedelta
schedule = {"seconds": 3600}
[celerybeat:update_missing_request_tag_ids]
task = cherubplay.tasks.update_missing_request_tag_ids
type = timedelta
schedule = {"seconds": 30}
# I omitted check_tag_consistency because of how long it took to run with tens
# of thousands of tags.
[celerybeat:remove_unused_tags]
task = cherubplay.tasks.remove_unused_tags
type = timedelta
schedule = {"seconds": 3600}
[celerybeat:check_virtual_connection_consistency]
task = cherubplay.tasks.check_virtual_connection_consistency
type = timedelta
schedule = {"seconds": 3600}
[celerybeat:answer_requests_with_full_slots]
task = cherubplay.tasks.answer_requests_with_full_slots
type = timedelta
schedule = {"seconds": 3600}
[celerybeat:cleanup_expired_exports]
task = cherubplay.tasks.cleanup_expired_exports
type = timedelta
schedule = {"seconds": 3600}
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, cherubplay, sqlalchemy, celery
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = DEBUG
handlers = console
[logger_cherubplay]
level = DEBUG
handlers =
qualname = cherubplay
[logger_sqlalchemy]
level = DEBUG
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[logger_celery]
level = DEBUG
handlers =
qualname = celery
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s