blob: b6a9273adf8c17457be5dc2a8f4f42f4143734dd (
plain)
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
|
{
pkgs,
lib,
cfg,
doctrine,
...
}:
with lib; {
services = {
nginx = {
virtualHosts.${cfg.hostName} = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
};
};
mediawiki = {
enable = true;
name = cfg.name;
webserver = "nginx";
nginx.hostName = cfg.hostName;
database.type = "postgres";
passwordFile = cfg.passwordFile;
skins = cfg.skins;
extraConfig = cfg.extraConfig;
extensions = cfg.extensions;
};
};
}
|