dev/web: run caddy as user service with Caddyfile watching
1 file changed, 0 insertions(+), 27 deletions(-)
changed files
M system/hosts/marvin.nix → system/hosts/marvin.nix
@@ -3,22 +3,13 @@ config, pkgs, ... }: -let - tsnet = "fin-marlin.ts.net"; -in { imports = [ ../settings/darwin.nix - ../settings/dev.nix ../settings/programs/shell.nix ../settings/programs/base.nix ]; - local.web = { - enable = true; - projectRoot = "/Users/alin/projects"; - }; - system.primaryUser = "alin"; system.primaryUserHome = "/Users/alin"; users.users."${config.system.primaryUser}".openssh.authorizedKeys.keys = [@@ -33,24 +24,6 @@ networking = { hostName = "marvin"; localHostName = "Paranoid-Android"; - }; - - services.caddy = { - user = "root"; - group = "wheel"; - virtualHosts = { - "${config.networking.hostName}.${tsnet}" = { - logFormat = "output discard"; - extraConfig = '' - reverse_proxy http://localhost:1234 { - transport http { - dial_timeout 1s - compression off - } - } - ''; - }; - }; }; services.redis = {