From 9039a944e2e69bfd069eba33209fda55d106f3d2 Mon Sep 17 00:00:00 2001 From: Natalie Marks Date: Tue, 16 Apr 2024 01:14:57 -0700 Subject: [PATCH] updated system config --- configuration.nix | 52 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/configuration.nix b/configuration.nix index 6b820af..a39786e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -29,21 +29,47 @@ services.caddy = { enable = true; - virtualHosts."10.154.1.147".extraConfig = '' - tls internal - reverse_proxy localhost:30000 - encode zstd gzip - ''; + # virtualHosts."10.154.1.147".extraConfig = '' + # tls internal + # reverse_proxy localhost:30000 + # encode zstd gzip + # ''; - virtualHosts."10.154.1.105".extraConfig = '' - tls internal - reverse_proxy localhost:30000 - encode zstd gzip - ''; + # virtualHosts."10.154.1.105".extraConfig = '' + # tls internal + # reverse_proxy localhost:30000 + # encode zstd gzip + # ''; + # + # virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' + # reverse_proxy localhost:30000 + # encode zstd gzip + # ''; - virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' - reverse_proxy localhost:30000 - encode zstd gzip + extraConfig = '' + # This replaces the existing content in /etc/caddy/Caddyfile + + # A CONFIG SECTION FOR YOUR IP AND HOSTNAME + + { + default_sni 10.154.1.105 + } + + 10.154.1.105 { + # PROXY ALL REQUEST TO PORT 30000 + tls internal + reverse_proxy localhost:30000 + encode zstd gzip + } + + pathfinder2e.duckdns.org { + # PROXY ALL REQUEST TO PORT 30000 + reverse_proxy localhost:30000 + encode zstd gzip + } + + # Refer to the Caddy docs for more information: + # https://caddyserver.com/docs/caddyfile ''; };