From f1fbeb2109058c3eb644aad80341a87ebd1f803b Mon Sep 17 00:00:00 2001 From: zack Date: Fri, 3 May 2024 14:22:34 -0400 Subject: [PATCH] add nginx --- hosts/pluto/configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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;