diff options
| author | Alejandro Soto <alejandro@34project.org> | 2026-02-03 15:16:48 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2026-02-03 15:16:48 -0600 |
| commit | 57e33b923de6a9122e43613778de0d268a5b4eb8 (patch) | |
| tree | 806101359fe89031b29a4eb37f10ba96b511c3f9 /trivionomicon/modules/mediawiki/sys.nix | |
| parent | f2a85354abbad60ea13f15d7c20a988d2f9a6a52 (diff) | |
| parent | 4a822c48da5a3aa4550fd0fad2697fd023c1810a (diff) | |
Merge commit 'b4974a7fc6338ad127bfe667084010199b2961f6' into master
Diffstat (limited to 'trivionomicon/modules/mediawiki/sys.nix')
| -rw-r--r-- | trivionomicon/modules/mediawiki/sys.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/trivionomicon/modules/mediawiki/sys.nix b/trivionomicon/modules/mediawiki/sys.nix new file mode 100644 index 0000000..525ec3e --- /dev/null +++ b/trivionomicon/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; + }; + }; +} |
