-
Notifications
You must be signed in to change notification settings - Fork 2
/
default_vars.nix
70 lines (61 loc) · 2.03 KB
/
default_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
self: {
compileWebclient = true;
dataProtectionPolicy = {
default = "Data Protection Policy";
de = "Datenschutzerklärung";
};
debug = false;
publicKeydir = null;
privateKeydir = null;
# By default, private keys are linked from keydir to the Nix store. Activate the following setting to copy them instead.
# !!!WARNING: private keys will be world-readable in the Nix store when this is set to true!!!
copyPrivateKeysToStore = false;
serverNumber = 1; # position of this server, starts with 1
# urls for the backend servers. The first server is pos 1, the second pos 2 and so on.
backendUrls = [ "http://localhost:10001" "http://localhost:10002" ];
idServerUrl = "https://id.localhost";
hostingOrganisationUrl = "";
mailContentSubject = "Wahlschein erstellt";
mailContentBody = ''
Hallo!
Sie haben für die Abstimmung >$electionId< einen Wahlschein erstellt.
Falls dies nicht zutreffen sollte, wenden Sie sich bitte umgehend an einen Abstimmungsverantwortlichen.
Freundliche Grüße
Das Wahlteam
'';
tallyServerNumbers = [ 1 2 ]; # which server acts as tally server? (starts at 1!)
anonymizerUrl = "http://anonymouse.org/cgi-bin/anon-www_de.cgi/";
voteScheme = "http";
votePort = 80;
webclientUrl = "http://localhost/vvvote";
useAnonServer = true;
isTallyServer = builtins.any (n: self.serverNumber == n) self.tallyServerNumbers;
db = {
name = "vvvote";
host = "localhost";
user = "vvvote";
password = "";
prefix = "";
};
backend = {
httpPort = 10001;
httpAddress = "127.0.0.1";
};
oauth = {
serverId = "ekklesia";
serverDesc = "ID Server";
clientIds = [ "vvvote" "vvvote2" ];
clientSecret = "invalidClientSecret";
extraScopes = [];
notifyClientId = "example_app";
notifyClientSecret = "invalidNotifyClientSecret";
notifyUrl = "https://notify.invalid/freeform_message";
oauthUrl = self.idServerUrl;
resourcesUrl = self.idServerUrl;
serverUsageNote = {
de = "";
fr = "";
en_US = "";
};
};
}