modularize media wiki
This commit is contained in:
parent
23758a11c1
commit
84c4c6556e
3 changed files with 116 additions and 0 deletions
31
modules/mediawiki/sys.nix
Normal file
31
modules/mediawiki/sys.nix
Normal file
|
|
@ -0,0 +1,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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue