prefect: set up caddy for local https
1 file changed, 40 insertions(+), 0 deletions(-)
changed files
A system/settings/dev.nix
@@ -0,0 +1,40 @@ +{ config +, pkgs +, ... +}: { + services.caddy = { + enable = true; + virtualHosts = { + "localhost" = { + extraConfig = '' + tls { + issuer internal { + ca local + } + } + acme_server + ''; + }; + "alanpearce.localhost" = { + extraConfig = '' + reverse_proxy h2c://alanpearce.localhost:3000 { + transport http { + dial_timeout 1s + compression off + } + } + ''; + }; + "searchix.localhost" = { + extraConfig = '' + reverse_proxy http://localhost:7331 { + transport http { + dial_timeout 1s + compression off + } + } + ''; + }; + }; + }; +}