1
0
Fork 0

sail: Move docs from CF

This commit is contained in:
Daniel Kempkens 2023-03-06 12:06:59 +01:00
parent 3a9f0327ee
commit 69948f06ce
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 8 additions and 12 deletions

View file

@ -37,7 +37,7 @@ in
../nixos/synapse.nix ../nixos/synapse.nix
../nixos/websites.nix ../nixos/websites-sail.nix
(import ../nixos/tailscale.nix (args // { inherit secret; })) (import ../nixos/tailscale.nix (args // { inherit secret; }))

View file

@ -17,6 +17,10 @@
"daniel.sx" = { "daniel.sx" = {
domain = "*.daniel.sx"; domain = "*.daniel.sx";
}; };
"nifoc.pw" = {
domain = "*.nifoc.pw";
};
}; };
}; };
} }

View file

@ -2,24 +2,16 @@
{ {
services.nginx = { services.nginx = {
enable = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedBrotliSettings = true;
# Documentation # Documentation
virtualHosts = builtins.listToAttrs (builtins.map virtualHosts = builtins.listToAttrs (builtins.map
(domain: { (domain: {
name = domain; name = domain;
value = { value = {
listen = [ http3 = true;
{
addr = "127.0.0.1";
port = 80;
}
];
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}"; root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
forceSSL = true;
useACMEHost = "nifoc.pw";
extraConfig = '' extraConfig = ''
autoindex on; autoindex on;