modularize media wiki

This commit is contained in:
Fabian Montero 2026-02-03 14:46:33 -06:00
parent d08b8011e4
commit f791a2b208
Signed by: fabian
GPG key ID: 8036F30EDBAC8447
6 changed files with 167 additions and 75 deletions

View 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;
};
};
}