-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
common.ini.in
119 lines (95 loc) · 4.07 KB
/
common.ini.in
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
# common configuration between production.ini and development.ini
[app:main]
use = egg:c2corg_api
# Disable the authorization checks if True
noauthorization = {noauthorization}
pyramid.default_locale_name = en
# size of the connection pool for the database. note that this number is
# per application instance.
sqlalchemy.pool_size=20
elasticsearch.host = {elasticsearch_host}
elasticsearch.port = {elasticsearch_port}
elasticsearch.index = {elasticsearch_index}
elasticsearch.pool = 50
# batch size for fill_index
elasticsearch.batch_size.fill_index = {elasticsearch_batch_size_fill_index}
# batch size for es_syncer script
elasticsearch.batch_size.syncer = {elasticsearch_batch_size_syncer}
# Redis is used as queue to notify the syncer script of changed documents
# and also as cache
redis.url = {redis_url}
redis.db_queue = {redis_db_queue}
redis.db_cache = {redis_db_cache}
# queue configuration
redis.exchange = {redis_exchange}
redis.queue_es_sync = {redis_queue_es}
redis.queue_pool = 20
# cache configuration
redis.cache_key_prefix = {redis_cache_key_prefix}
redis.cache_pool = 50
# timeout on socket setup (seconds)
redis.socket_connect_timeout = 0.1
# timeout on open socket (seconds)
redis.socket_timeout = 0.25
# timeout waiting for an available slot in the connection pool (seconds)
redis.pool_timeout = 0.5
# cache keys TTL (seconds). Used by redis' eviction mechanism, not by dogpile
redis.expiration_time = 604800
# status refresh period (in seconds): if a request to Redis failed in the last
# x seconds, no new request will be made.
redis.cache_status_refresh_period = {redis_cache_status_refresh_period}
cache_version = {version}
cache_version_timestamp = False
# User id to use for anonymous contributions in the guidebook
guidebook.anonymous_user_account = {guidebook_anonymous_user_account}
# if given, changes of this user account will not be returned in the feed
feed.admin_user_account = {feed_admin_user_account}
logging.level = {logging_level}
jwtauth.find_groups = c2corg_api.security.roles:groupfinder
# FIXME: do not save the secret key on github
jwtauth.master_secret = The master key
# FIXME: do not save the forum key on github
discourse.url = {discourse_url}
discourse.public_url = {discourse_public_url}
discourse.api_key = {discourse_api_key}
discourse.sso_secret = {discourse_sso_secret}
discourse.category = {discourse_category}
ui.url = {ui_url}
mail.validate_register_url_template = {mail_validate_register_url_template}
mail.request_password_change_url_template = {mail_request_password_change_url_template}
mail.validate_change_email_url_template = {mail_validate_change_email_url_template}
mail.from = {mail_from}
mail.host = {mail_host}
mail.port = {mail_port}
mail.username = {mail_username}
mail.password = {mail_password}
mail.tls = {mail_tls}
mail.ssl = {mail_ssl}
mail.keyfile = {mail_keyfile}
mail.certfile = {mail_certfile}
mail.queue_path = {mail_queue_path}
mail.default_sender = {mail_default_sender}
mail.debug = {mail_debug}
mail.sendmail_app = {mail_sendmail_app}
mail.sendmail_template = {mail_sendmail_template}
# Number of seconds to wait for response bytes on the requests sockets.
# At the expiration of this timeout, the request is considered failed.
# Using a large value to take into account a possible slow restart (caching).
# This value is used globally in the application.
url.timeout = 10
recaptcha.secret.key = {recaptcha_secret_key}
skip.captcha.validation = {skip_captcha_validation}
image_backend.url = {image_backend_url}
image_backend.secret_key = {image_backend_secret_key}
image_url = {image_url}
# Rate limiting settings
# Window timespan in seconds:
rate_limiting.window_span = {rate_limiting_window_span}
# Max number of actions allowed during a single window:
rate_limiting.limit = {rate_limiting_limit}
rate_limiting.limit_moderator = {rate_limiting_limit_moderator}
rate_limiting.limit_robot = {rate_limiting_limit_robot}
# Max number of times a user can be rate limited before being blocked:
rate_limiting.max_times = {rate_limiting_max_times}
# Email address rate limiting alert messages are sent to
rate_limiting.alert_address = {rate_limiting_alert_address}