diff --git a/flake.nix b/flake.nix index d450500..c2784cf 100644 --- a/flake.nix +++ b/flake.nix @@ -83,6 +83,7 @@ ./common.nix ./hosts/vps/configuration.nix ./hosts/vps/disko-config.nix + ./services/blog.nix ./services/coturn.nix ./services/wireguard-outer.nix ./services/borgbackup-vps.nix diff --git a/services/blog.nix b/services/blog.nix new file mode 100644 index 0000000..65eaf10 --- /dev/null +++ b/services/blog.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + services.nginx = { + enable = true; + + virtualHosts."ellie.town" = { + enableACME = true; + forceSSL = true; + root = "/var/www/blog"; + + locations."/" = { + index = "index.html"; + }; + }; + }; + + security.acme = { + acceptTerms = true; + defaults.email = "contact@elliehigh.com"; + }; +}