-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom_vars.nix
96 lines (85 loc) · 2.23 KB
/
custom_vars.nix
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
let
extraConfig = ''
'';
all_verbs = ["options" "head" "get" "post" "patch" "put" "delete"];
in rec {
certdir = /opt/ekklesia/etc/certs;
admins = [
["escaP" "[email protected]"]
];
managers = admins;
db = {
port = "5432";
password = "pU04HaEB2MczCCscO";
};
logfile = "/var/log/ekklesia/ekklesia.production.log";
allowedHosts = [
"localhost"
"127.0.0.1"
"id.piratenpartei.ch"
"id.partipirate.ch"
"idapi.piratenpartei.ch"
];
email = {
subjectPrefix = "[televotia]";
defaultFrom = "[email protected]";
host = "localhost";
useTls = true;
defaultImap = {
ca_certs = certdir + /ca-certificates.crt;
certfile = certdir + /televotiamail.crt;
keyfile = certdir + /televotiamail.key;
};
defaultSmtp = {
host = "localhost";
port = 587;
ca_certs = certdir + /ca-certificates.crt;
keyfile = certdir + /televotiamail.key;
certfile = certdir + /televotiamail.crt;
};
};
ssl = {
basicAuth = {
invitations = [
[ "test" "invitations" "invitations" ]
[ "test_escap" "test_escap" "invitations" ]
[ "test_savvy" "test_savvy" "invitations" ]
];
members = [
[ "test" "members" "members" ]
[ "test_escap" "test_escap" "members" ]
[ "test_savvy" "test_savvy" "members" ]
];
};
clientLogin = {
test = [ "test" ];
portal = [ "portal" ];
};
certs = {
test = certdir + /test.crt;
test_escap = certdir + /televotia-test-escap.crt;
test_savvy = certdir + /televotia-test-savvy.crt;
};
};
shareClients = {
portal = {
portal = all_verbs;
};
};
listClients = {
portal = all_verbs;
};
apiGnupgKey = [ "[email protected]" "televotia" ];
apiBackendKeys = {
invitations = "[email protected]";
members = "[email protected]";
};
# pyamqp://username:pass@host/virtual
brokerUrl = pyamqp://id:id@localhost/id;
secretKey = "2u4SQvg5EdZxxA2fM6QT";
mailhidePublic = "01olNgeIYYMbJlz6Ex-PVMlQ==";
mailhidePrivate = "3da2729f0206e8611fffee918f19794e";
recaptchaPublic = "key";
recaptchaPrivate = "priv";
inherit extraConfig;
}