servers module linting, removed unnecesary nesting

This commit is contained in:
2025-04-16 22:38:02 -06:00
parent 556bce8282
commit bcbf047415
6 changed files with 74 additions and 86 deletions

View File

@@ -9,16 +9,14 @@ let
in
{
options.my.websites.portfolio = setup.mkOptions "portfolio" "portfolio" 0;
config = {
services.nginx.virtualHosts."danilo-reyes.com" = lib.mkIf cfg.enableProxy {
forceSSL = true;
enableACME = true;
http2 = true;
root = "/srv/www/danilo-reyes.com";
# index = "index.html";
locations."/".extraConfig = ''
try_files $uri $uri/ =404;
'';
};
config.services.nginx.virtualHosts."danilo-reyes.com" = lib.mkIf cfg.enableProxy {
forceSSL = true;
enableACME = true;
http2 = true;
root = "/srv/www/danilo-reyes.com";
# index = "index.html";
locations."/".extraConfig = ''
try_files $uri $uri/ =404;
'';
};
}