nixos/services: add default website on nginx
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 12s

This commit is contained in:
2026-05-04 04:55:58 +02:00
parent e0bd689d4f
commit a78752607f
2 changed files with 26 additions and 7 deletions
+12 -6
View File
@@ -1,4 +1,4 @@
{ config, ... }:
{ config, self, ... }:
let
inherit (config.networking) fqdn;
@@ -32,11 +32,17 @@ in
recommendedGzipSettings = true;
recommendedOptimisation = true;
# services.nginx.virtualHosts."${fqdn}" = {
# addSSL = true;
# root = "/var/www/myhost.org";
# default = true;
# };
virtualHosts."${fqdn}" = mkVhost {
default = true;
locations."/" = {
root = "${self.pins.website}/web-root";
extraConfig = ''
ssi on;
'';
};
};
virtualHosts."git.${fqdn}" = mkVhost {
locations."/" = mkProxy config.services.gitea.settings.server.HTTP_PORT;