mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
23 lines
553 B
Nix
23 lines
553 B
Nix
{config, ...}: let
|
|
fqdn = "${config.networking.hostName}.${config.networking.domain}";
|
|
in {
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"${fqdn}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/".extraConfig = ''
|
|
return 404;
|
|
'';
|
|
"/_matrix".proxyPass = "http://[::1]:8008";
|
|
"/_synapse".proxyPass = "http://[::1]:8008";
|
|
};
|
|
extraConfig = ''
|
|
http2_max_requests 100000;
|
|
keepalive_requests 100000;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|