1 -- Regano database configuration default values
3 -- Uses PostgreSQL extensions.
5 -- Regano is a domain registration system for OpenNIC TLDs written in
6 -- Perl. This file is part of Regano.
8 -- Regano may be distributed under the same terms as Perl itself. Of
9 -- particular importance, note that while regano is distributed in the
10 -- hope that it will be useful, there is NO WARRANTY OF ANY KIND
11 -- WHATSOEVER WHETHER EXPLICIT OR IMPLIED.
14 -- The type definitions in db_types.sql must already be installed.
15 -- The table definitions in db_tables.sql are needed for this to actually work.
16 -- The function definitions in db_functions.sql must already be installed.
18 -- antiskid/block: (interval)
19 -- enforced timeout for blocked clients
20 SELECT regano.config_set('antiskid/block', interval '10 minutes');
21 -- antiskid/tally: (interval, number)
22 -- block client if <number> points are accumulated within <interval>
23 SELECT regano.config_set('antiskid/tally', interval '2 minutes');
24 SELECT regano.config_set('antiskid/tally', 5000);
25 -- antiskid/weight/*: (number)
26 -- points accumulated for various actions:
27 -- login: login attempt
28 SELECT regano.config_set('antiskid/weight/login', 250);
29 -- passwd: password change
30 SELECT regano.config_set('antiskid/weight/passwd', 500);
31 -- newuser: user account creation
32 SELECT regano.config_set('antiskid/weight/newuser', 3000);
33 -- contact: add or edit contact records
34 SELECT regano.config_set('antiskid/weight/contact', 10);
35 -- verify_email: email address verification (per email sent)
36 SELECT regano.config_set('antiskid/weight/verify_email', 10);
37 -- domain: register or renew a domain
38 SELECT regano.config_set('antiskid/weight/domain', 10);
39 -- zoneedit: DNS zone update
40 SELECT regano.config_set('antiskid/weight/zoneedit', 30);
43 -- algorithm to use with crypt()
44 -- auth/crypt: (number)
45 -- iteration count to use with crypt()
46 SELECT regano.config_set('auth/crypt', 'bf');
47 SELECT regano.config_set('auth/crypt', 10);
48 -- Note that the default 'bf' algorithm only accepts up to 72 characters of
49 -- input and ignores excess input data. Base64 encoded SHA384 fits in
50 -- this, but simple hex encoded SHA512 exceeds this limit.
52 -- session/max_age: (interval)
53 -- automatic logout regardless of activity
54 SELECT regano.config_set('session/max_age', interval '6 hours');
55 -- session/max_idle: (interval)
56 -- automatic logout due to inactivity
57 SELECT regano.config_set('session/max_idle', interval '10 minutes');
58 -- NOTE: session activity timestamps are "fuzzy" and are only updated
59 -- when activity occurs after 1/4 of the idle timeout has elapsed
61 -- verify/max_age: (interval)
62 -- amount of time that verfication emails are valid
63 SELECT regano.config_set('verify/max_age', interval '24 hours');
65 -- domain/grace_period (interval)
66 -- amount of time that a domain may remain expired before it is deleted
67 SELECT regano.config_set('domain/grace_period', interval '30 days');
68 -- domain/pend_term (interval)
69 -- amount of time that a domain may remain pending before it is deleted
70 SELECT regano.config_set('domain/pend_term', interval '36 hours');
71 -- domain/term: (interval)
72 -- amount of time that domains remain registered if not renewed
73 SELECT regano.config_set('domain/term', interval '1 year');