diff options
| author | Fabian Montero <fabian@posixlycorrect.com> | 2026-02-03 14:46:33 -0600 |
|---|---|---|
| committer | Fabian Montero <fabian@posixlycorrect.com> | 2026-02-03 15:10:47 -0600 |
| commit | e44c6337d4557c9377b562e3687d24ef5e236974 (patch) | |
| tree | bb7c4484c8f67423bc0cb6b5d8d0019278a74e64 /modules/mediawiki/sys.nix | |
| parent | d7059ab8888ca605bc6a1f5822a070ef8c33b4a4 (diff) | |
modularize media wiki
Diffstat (limited to '')
| -rw-r--r-- | modules/mediawiki/sys.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/mediawiki/sys.nix b/modules/mediawiki/sys.nix new file mode 100644 index 0000000..525ec3e --- /dev/null +++ b/modules/mediawiki/sys.nix @@ -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; + }; + }; +} |
