refactor: Modularise Nginx vhosts
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disko-config.nix
|
||||
./services.nix
|
||||
];
|
||||
|
||||
sydnix = {
|
||||
@@ -37,6 +36,25 @@
|
||||
enable = true;
|
||||
keyFile = "/persist/vault/root/deertopia-key";
|
||||
};
|
||||
|
||||
deertopia = {
|
||||
nginx.enable = true;
|
||||
git-annex.enable = true;
|
||||
|
||||
# A simple default webpage. This should probably live somewhere else.
|
||||
nginx.vhosts."www" = {
|
||||
vhostName = "deertopia.net";
|
||||
vhost = {
|
||||
# addSSL = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
locations."/" = {
|
||||
index = "index.html";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot.loader = {
|
||||
|
||||
Reference in New Issue
Block a user