mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
37 lines
808 B
Nix
37 lines
808 B
Nix
{config, ...}: {
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedTlsSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedProxySettings = true;
|
|
statusPage = true;
|
|
virtualHosts = let
|
|
vHost = {
|
|
extraConfig = ''
|
|
add_header Content-Type text/plain;
|
|
return 200 "meep?";
|
|
'';
|
|
/*
|
|
locations = {
|
|
"/" = {
|
|
extraConfig = ''
|
|
add_header Content-Type text/plain;
|
|
return 200 "meep?";
|
|
'';
|
|
};
|
|
};
|
|
*/
|
|
};
|
|
in {
|
|
"${config.networking.fqdn}" =
|
|
vHost
|
|
// {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
default = true;
|
|
};
|
|
"localhost" = vHost;
|
|
};
|
|
};
|
|
}
|