clan-infra/modules/web01/homepage.nix

24 lines
498 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;
# to be deployed via rsync
root = "/var/www";
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";
};
};
}