Repository navigation
Expand file tree
/
Copy pathRT_SiteConfig.pm.example
More file actions
64 lines (56 loc) · 1.61 KB
/
Copy pathRT_SiteConfig.pm.example
File metadata and controls
64 lines (56 loc) · 1.61 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
### Base configuration ###
Set($rtname, 'rt');
Set($WebDomain, 'localhost');
Set($WebPort, 443);
Set($CanonicalizeRedirectURLs, 1);
Set($CanonicalizeURLsInFeeds, 1);
Plugin('RT::Extension::MergeUsers');
Plugin('RT::Extension::TerminalTheme');
### Database connection ###
Set($DatabaseType, 'Pg' );
Set($DatabaseHost, 'db');
Set($DatabasePort, '5432');
Set($DatabaseUser, 'rt');
Set($DatabasePassword, 'password');
Set($DatabaseName, 'rt');
Set($DatabaseAdmin, "rt");
### MFA configuration ###
# Set before enabling MFA, e.g. openssl rand -hex 32 (RT 5.0.11+ and 6.0.4+)
# https://docs.bestpractical.com/rt/6.0.4/RT_Config.html#SecretKey
Set($SecretKey, 'CHANGEME');
Set($DisableMFA, 0);
Set($MFAPolicy, {
Default => {
Mode => 'Off',
Drift => 0,
},
});
Set($SendmailPath, '/usr/bin/msmtp');
### GnuPG configuration ###
Set(%GnuPG,
Enable => 1,
GnuPG => 'gpg',
Passphrase => undef,
OutgoingMessagesFormat => 'RFC'
);
Set(%GnuPGOptions,
homedir => '/opt/rt/var/data/gpg',
passphrase => 'PASSPHRASE',
keyserver => 'hkps://keys.openpgp.org',
'auto-key-retrieve' => undef,
'keyserver-options' => 'timeout=20',
'auto-key-locate' => 'keyserver',
);
### SMIME configuration ###
Set(%SMIME,
Enable => 1,
AcceptUntrustedCAs => 1,
OpenSSL => '/usr/bin/openssl',
Keyring => '/opt/rt/var/data/smime',
CAPath => '/opt/rt/var/data/smime/signing-ca.pem',
Passphrase => {
'user@user.com' => 'PASSPHRASE',
'' => 'fallback',
},
);
1;