-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoptable.conf
More file actions
236 lines (210 loc) · 6.12 KB
/
Copy pathtoptable.conf
File metadata and controls
236 lines (210 loc) · 6.12 KB
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# rename this file to toptable.yml and put a ':' after 'name' if
# you want to use YAML like in old versions of Catalyst
name TopTable
site_description "A description of your web site."
default_view HTML
<Paths>
image_streaming __path_to(root,stream-files,images)__
file_downloads __path_to(root,stream-files,downloads)__
</Paths>
<Menu>
show_teams 0 # Change to 1 to show teams in nav menu
show_players 0 # Change to 1 to show players in nav menu (only if show_teams is 1 too)
</Menu>
<Index>
news_articles_visible 10
recent_updates_visible 5
</Index>
<Pagination>
default_page_size 25 # Default page size for all pagination routines
</Pagination>
<Players>
reassign_active_on_team_season_create 0 # Reassign active team memberships
show_transfer_form 0 # Player transfer form (on player page, if the user has permission to transfer - hide of not required)
</Players>
<Users>
password_reset_expiry_limit 24 # Number of hours
activation_expiry_limit 24 # Number of hours
manual_approval 1 # Manually approve registrations before allowing users to login?
manual_approval_notification_email "welch.chris@gmail.com"
manual_approval_notification_language en_GB
require_registration_reason 1
associate_with_person_by_email 1
forgot_password_email_unrecognised_user 1 # Email addresses that are entered into the 'forgot password' form but don't belong to a registered user
<SocialLinks>
facebook https://www.facebook.com/<profile>
twitter https://twitter.com/<profile>
instagram https://www.instagram.com/<profile>
snapchat https://www.snapchat.com/add/<profile>
tiktok https://www.tiktok.com/@<profile>
</SocialLinks>
</Users>
<Search>
enable_search_bar 1
</Search>
<Tables>
pages_to_retrieve 3
</Tables>
# DB connection
<Model::DB>
schema_class TopTable::Schema
<connect_info>
dsn dbi:mysql:toptable
user db_username
password db_password
AutoCommit 1
disable_sth_caching 1
</connect_info>
</Model::DB>
<Model::Email>
class Mail::Builder::Simple
<args>
from from@domain.com
from "From Name"
<template_args>
INCLUDE_PATH __path_to(root,templates,emails)__
</template_args>
<mail_client>
mailer SMTP
<mailer_args>
host mail.server.host.name
username mail_username
password mail_password
</mailer_args>
</mail_client>
</args>
</Model::Email>
<Model::Cleantalk::Contact>
<args>
auth_key API_key # Anti-spam service
</args>
</Model::Cleantalk::Contact>
<Model::Cleantalk::Registration>
<args>
auth_key API_key # Anti-spam service
</args>
</Model::Cleantalk::Registration>
<Model::ICal>
class Data::ICal
<args>
calname "TopTable table tennis league management software"
rfc_strict 1
</args>
</Model::ICal>
# Authenitcation config
<Plugin::Authentication>
default_realm users
<realms>
<users>
<credential>
class Password
password_field password
password_type self_check # The use of self_check will cause Catalyst::Plugin::Authentication::Store::DBIC to call the check_password method we enabled on our password columns.
</credential>
<store>
class DBIx::Class
user_model DB::User
role_relation roles
role_field name
</store>
</users>
</realms>
</Plugin::Authentication>
# Session config - do not change (apart from 'expires')
<Plugin::Session>
expires 3600
dbi_dbh DB
dbi_table sessions
dbi_id_field id
dbi_data_field data
dbi_expires_field expires
</Plugin::Session>
# Google API config
<Google>
<Maps>
api_key Maps-API-key
distance_tolerance_value 300 # This is so we don't select a wrong value when editing venues; the closest lat/long value will be selected, but if the closest distance is over this, it won't select anything.
distance_tolerance_unit metre # e.g., millimetre, metre, mile, yard, etc.
</Maps>
<reCAPTCHA>
validate_on_register 1
validate_on_password_forget 1
validate_on_username_forget 1
validate_on_contact 1 # Only for users not logged in
invalid_login_threshold 3 # After this number of invalid login attempts, a CAPTCHA will be shown
invalid_login_time_threshold 30 # After this number of minutes, the invalid login counts will be reset
site_key reCAPTCHA-site-key
secret_key reCAPTCHA-secret-key
verify_uri https://www.google.com/recaptcha/api/siteverify
</reCAPTCHA>
<Analytics>
tracking_id UA-Analytics-Tracking-ID
</Analytics>
</Google>
# Iframely
<Iframely>
api_key IFramely-API-Key
iframe_url //cdn.iframe.ly/api/iframe
</Iframely>
<DateTime>
default_timezone Europe/London
</DateTime>
<breadcrumbs>
show_breadcrumbs 0
hide_current 0
hide_index 1
hide_home 0
display_threshold 0 # Any less breadcrumbs than this, we won't display it at all.
</breadcrumbs>
<I18N>
default_locale en_GB
<locales>
<en>
name English
format_date dd/MM/yyyy
format_datetime dd/MM/yyyy HH:mm
format_date_long eeee d MMMM yyyy
format_datetime_long eeee d MMMM yyyy HH:mm
thousands_sep ","
decimal_point "."
decimal_fill 0
decimal_digits 2
positive_sign ""
negative_sign "-"
int_frac_digits 2
frac_digits 2 # If this is -1 (which it sometimes is on Windows at least), $c->i18n_numberformat->format_number() will just return zeroes.
mon_decimal_point "."
mon_thousands_sep ","
mon_grouping 3
int_curr_symbol GBP
currency_symbol "£"
</en>
<en_GB>
name "English (UK)"
inherits en
timezone Europe/London
</en_GB>
</locales>
</I18N>
<Model::Maketext>
class TopTable::Maketext
directories __path_to(root,locale)__
</Model::Maketext>
<users>
allow_username_edit 0 # The option will automatically be available for users who can 'edit all' users, rather than just their own
</users>
# Not currently used
<hashedcookies>
key Hashed-Key
algorithm SHA1
</hashedcookies>
<Matches>
<Team>
duration 180 # Approximate match duration in minutes (mainly for calendar events)
outstanding_scorecard_hours 24
</Team>
</Matches>
<Reports>
default_row_limit 20
max_row_limit 100
</Reports>