blob: 525ec3ed4da420ce40f81e7435072ab1def60adf (
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
|
{
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;
};
};
}
|