diff options
author | Leonardo Santiago <[email protected]> | 2024-09-17 00:04:25 -0300 |
---|---|---|
committer | Leonardo Santiago <[email protected]> | 2024-09-17 00:04:25 -0300 |
commit | 7fe1c93902bc7ad93fe9c8d325822cea7a1955eb (patch) | |
tree | 180bb018e395b1578b748d65b389688b7951238f /modules/blog.nix | |
parent | d2f8537695338c6b186bb0d52489c66c6ae83b8d (diff) |
configure SSL, change emacs build flags
Diffstat (limited to 'modules/blog.nix')
-rw-r--r-- | modules/blog.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/blog.nix b/modules/blog.nix index 9234f4e..6e7021a 100644 --- a/modules/blog.nix +++ b/modules/blog.nix @@ -19,11 +19,19 @@ in { }; }; config = mkIf cfg.enable { - networking.firewall.allowedTCPPorts = [ 80 ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; # TODO: enable SSL services.nginx = { enable = true; - virtualHosts.${cfg.url}.root = blog; + virtualHosts.${cfg.url} = { + addSSL = true; + enableACME = true; + root = blog; + }; + }; + security.acme = { + acceptTerms = true; + certs."santi.net.br".email = "[email protected]"; }; }; } |