-
Notifications
You must be signed in to change notification settings - Fork 26
/
fedbadges.toml.example
205 lines (182 loc) · 5.36 KB
/
fedbadges.toml.example
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
amqp_url = "amqp://localhost/%2Fpubsub"
callback = "fedbadges.consumer:FedoraBadgesConsumer"
passive_declares = false
publish_exchange = "amq.topic"
topic_prefix = ""
[tls]
ca_cert = "/etc/fedora-messaging/cacert.pem"
keyfile = "/etc/fedora-messaging/fedora-key.pem"
certfile = "/etc/fedora-messaging/fedora-cert.pem"
[client_properties]
app = "fedbadges"
# If the exchange or queue name has a "." in it, use quotes as seen here.
[exchanges."amq.topic"]
type = "topic"
durable = true
auto_delete = false
arguments = {}
[queues.fedbadges]
durable = true
auto_delete = false
exclusive = false
arguments = {}
[[bindings]]
queue = "fedbadges"
exchange = "amq.topic"
routing_keys = ["#"]
[consumer_config]
# This tells the consumer where to look for its BadgeRule definitions. It
# may be a relative or an absolute path on the file system.
badges_repo = "tests/test_badges"
# This is a sqlalchemy URI that points to the tahrir DB. In
# production, this will be a postgres URI.
database_uri = "sqlite:////tmp/badges.db"
# Email domain
email_domain = "fedoraproject.org"
# Datanommer database URI
datanommer_db_uri = "postgresql://datanommer:datanommer@localhost/messages"
datagrepper_url = "https://apps.fedoraproject.org/datagrepper"
distgit_hostname = "src.fedoraproject.org"
id_provider_hostname = "id.fedoraproject.org"
fasjson_base_url = "https://fasjson.fedoraproject.org"
# Check for new rules every these many minutes
rules_reload_interval = 15
# Cache configuation
[consumer_config.cache]
backend = "dogpile.cache.memory"
expiration_time = 3600
# This is a set of data that tells our consumer what Open Badges Issuer
# should be kept as the issuer of all the badges we create.
[consumer_config.badge_issuer]
issuer_id = "fedora"
issuer_name = "Fedora Project"
issuer_origin = "http://badges.fedoraproject.org"
issuer_url = "http://fedoraproject.org"
issuer_email = "[email protected]"
# Members and Sponsors of these groups get the corresponding badge
[[consumer_config.group_badges]]
group = "3d-printing-sig"
badge = "3d-printing-sig-member"
[[consumer_config.group_badges]]
group = "cla_done"
badge = "involvement"
[[consumer_config.group_badges]]
group = "advocates"
badge = "fedora-advocate"
[[consumer_config.group_badges]]
group = "ambassadors"
badge = "ambassador"
[[consumer_config.group_badges]]
group = "ambassadors"
memberships = ["sponsor"]
badge = "ambassadors-sponsor"
[[consumer_config.group_badges]]
group = "commops"
badge = "commops-superstar"
[[consumer_config.group_badges]]
group = "council"
badge = "council-member"
[[consumer_config.group_badges]]
group = "designteam"
badge = "pixel-ninja"
[[consumer_config.group_badges]]
group = "dotnet-team"
badge = "dotnet-sig-member"
[[consumer_config.group_badges]]
group = "fedora-hams"
badge = "amateur-radio-sig-member"
[[consumer_config.group_badges]]
group = "fi-apprentice"
badge = "no-longer-a-ronin"
[[consumer_config.group_badges]]
group = "gitfedora-web"
badge = "rock-the-web!"
[[consumer_config.group_badges]]
group = "git-fedora-electronic-lab"
badge = "fel-member"
[[consumer_config.group_badges]]
group = "iot"
badge = "iot-working-group-member"
[[consumer_config.group_badges]]
group = "irc-support-operators"
badge = "your-call-may-be-monitored-for-quality-assurance"
[[consumer_config.group_badges]]
group = "kde-sig"
badge = "kde-sig"
[[consumer_config.group_badges]]
group = "lxqt-sig"
badge = "lxqt-sig-member"
[[consumer_config.group_badges]]
group = "marketing"
badge = "called-to-action"
[[consumer_config.group_badges]]
group = "mindshare"
badge = "meeting-of-the-minds"
[[consumer_config.group_badges]]
group = "modularity-wg"
badge = "modularity-wg-member"
[[consumer_config.group_badges]]
group = "neuro-sig"
badge = "neurofedora-sig-member"
[[consumer_config.group_badges]]
group = "packager"
memberships = ["sponsor"]
badge = "packager-sponsor"
[[consumer_config.group_badges]]
group = "provenpackager"
badge = "proven-packager"
[[consumer_config.group_badges]]
group = "proventesters"
badge = "proven-tester"
[[consumer_config.group_badges]]
group = "robotics-sig"
badge = "domo-arigato"
[[consumer_config.group_badges]]
group = "ruby-sig"
badge = "ruby-sig-member"
[[consumer_config.group_badges]]
group = "security-team"
badge = "security-team"
[[consumer_config.group_badges]]
group = "summer-coding"
badge = "summer-coder"
[[consumer_config.group_badges]]
group = "sysadmin-main"
badge = "trust-me,-i-know-what-i-am-doing"
[[consumer_config.group_badges]]
group = "sysadmin-badges"
badge = "inside-job"
[[consumer_config.group_badges]]
group = "videos"
badge = "videographer"
[qos]
prefetch_size = 0
prefetch_count = 25
[log_config]
version = 1
disable_existing_loggers = true
[log_config.formatters.simple]
format = "[%(levelname)s %(name)s] %(message)s"
[log_config.handlers.console]
class = "logging.StreamHandler"
formatter = "simple"
stream = "ext://sys.stdout"
[log_config.loggers.fedora_messaging]
level = "INFO"
propagate = false
handlers = ["console"]
# Twisted is the asynchronous framework that manages the TCP/TLS connection, as well
# as the consumer event loop. When debugging you may want to lower this log level.
[log_config.loggers.twisted]
level = "INFO"
propagate = false
handlers = ["console"]
# Pika is the underlying AMQP client library. When debugging you may want to
# lower this log level.
[log_config.loggers.pika]
level = "WARNING"
propagate = false
handlers = ["console"]
[log_config.root]
level = "ERROR"
handlers = ["console"]