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/websites.nix
../nixos/websites-sail.nix
(import ../nixos/tailscale.nix (args // { inherit secret; }))

View file

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

View file

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