diff --git a/hosts/pluto/configuration.nix b/hosts/pluto/configuration.nix index 8788175..3b96281 100644 --- a/hosts/pluto/configuration.nix +++ b/hosts/pluto/configuration.nix @@ -91,6 +91,25 @@ }; }; + services.nginx = { + enable = true; + package = pkgs.nginxStable.override {openssl = pkgs.libressl;}; + virtualHosts = { + "search.zackmyers.io" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:8080"; + }; + }; + }; + }; + + security.acme = { + acceptTerms = true; + defaults.email = "zach@zacharymyers.com"; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;