mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: clean up colmena a little, fix nginx default vhost
This commit is contained in:
parent
cb7eb46ee7
commit
2189d0592f
4 changed files with 32 additions and 21 deletions
3
nixos/profiles/server/fqdn.nix
Normal file
3
nixos/profiles/server/fqdn.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
networking.domain = "inskip.me";
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
_: {
|
||||
{config, ...}: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
|
@ -6,5 +6,32 @@ _: {
|
|||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue