authorgravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2024-04-16 01:14:57-07:00
committergravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2024-04-16 01:14:57-07:00
log9039a944e2e69bfd069eba33209fda55d106f3d2
treef21532fd5626fa7451e4198770dbb6f73444474c
parentda029b783b7a0923b30310447f3fedfca518a294

updated system config


1 files changed, 41 insertions(+), 15 deletions(-)

configuration.nix+41-15
...@@ -29,21 +29,47 @@...@@ -29,21 +29,47 @@
29 services.caddy = {29 services.caddy = {
30 enable = true;30 enable = true;
3131
32 virtualHosts."10.154.1.147".extraConfig = ''32 # virtualHosts."10.154.1.147".extraConfig = ''
33 tls internal33 # tls internal
34 reverse_proxy localhost:3000034 # reverse_proxy localhost:30000
35 encode zstd gzip35 # encode zstd gzip
36 '';36 # '';
3737
38 virtualHosts."10.154.1.105".extraConfig = ''38 # virtualHosts."10.154.1.105".extraConfig = ''
39 tls internal39 # tls internal
40 reverse_proxy localhost:3000040 # reverse_proxy localhost:30000
41 encode zstd gzip41 # encode zstd gzip
42 '';42 # '';
4343 #
44 virtualHosts."pathfinder2e.duckdns.org".extraConfig = ''44 # virtualHosts."pathfinder2e.duckdns.org".extraConfig = ''
45 reverse_proxy localhost:3000045 # reverse_proxy localhost:30000
46 encode zstd gzip46 # encode zstd gzip
47 # '';
48
49 extraConfig = ''
50 # This replaces the existing content in /etc/caddy/Caddyfile
51
52 # A CONFIG SECTION FOR YOUR IP AND HOSTNAME
53
54 {
55 default_sni 10.154.1.105
56 }
57
58 10.154.1.105 {
59 # PROXY ALL REQUEST TO PORT 30000
60 tls internal
61 reverse_proxy localhost:30000
62 encode zstd gzip
63 }
64
65 pathfinder2e.duckdns.org {
66 # PROXY ALL REQUEST TO PORT 30000
67 reverse_proxy localhost:30000
68 encode zstd gzip
69 }
70
71 # Refer to the Caddy docs for more information:
72 # https://caddyserver.com/docs/caddyfile
47 '';73 '';
48 };74 };
4975