updated system config

This commit is contained in:
Natalie Marks 2024-04-16 01:14:57 -07:00
parent da029b783b
commit 9039a944e2

View file

@ -29,21 +29,47 @@
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts."10.154.1.147".extraConfig = '' # 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."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 tls internal
reverse_proxy localhost:30000 reverse_proxy localhost:30000
encode zstd gzip encode zstd gzip
''; }
virtualHosts."10.154.1.105".extraConfig = '' pathfinder2e.duckdns.org {
tls internal # PROXY ALL REQUEST TO PORT 30000
reverse_proxy localhost:30000 reverse_proxy localhost:30000
encode zstd gzip encode zstd gzip
''; }
virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' # Refer to the Caddy docs for more information:
reverse_proxy localhost:30000 # https://caddyserver.com/docs/caddyfile
encode zstd gzip
''; '';
}; };