clan-infra/modules/web01/homepage.nix

23 lines
507 B
Nix
Raw Normal View History

{ pkgs, self, ... }: {
2023-07-04 17:40:45 +00:00
security.acme.defaults.email = "admins@clan.lol";
security.acme.acceptTerms = true;
services.nginx = {
virtualHosts."clan.lol" = {
forceSSL = true;
enableACME = true;
root = self.inputs.homepage.packages.${pkgs.system}.default;
2023-07-04 17:40:45 +00:00
extraConfig = ''
charset utf-8;
source_charset utf-8;
'';
};
virtualHosts."www.clan.lol" = {
forceSSL = true;
enableACME = true;
globalRedirect = "clan.lol";
};
};
}