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