sail: Move docs from CF
This commit is contained in:
parent
3a9f0327ee
commit
69948f06ce
3 changed files with 8 additions and 12 deletions
|
@ -37,7 +37,7 @@ in
|
|||
|
||||
../nixos/synapse.nix
|
||||
|
||||
../nixos/websites.nix
|
||||
../nixos/websites-sail.nix
|
||||
|
||||
(import ../nixos/tailscale.nix (args // { inherit secret; }))
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
"daniel.sx" = {
|
||||
domain = "*.daniel.sx";
|
||||
};
|
||||
|
||||
"nifoc.pw" = {
|
||||
domain = "*.nifoc.pw";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
Loading…
Reference in a new issue