| ... | @@ -29,21 +29,47 @@ | ... | @@ -29,21 +29,47 @@ |
| 29 | services.caddy = { | 29 | services.caddy = { |
| 30 | enable = true; | 30 | enable = true; |
| 31 | | 31 | |
| 32 | virtualHosts."10.154.1.147".extraConfig = '' | 32 | # virtualHosts."10.154.1.147".extraConfig = '' |
| 33 | tls internal | 33 | # tls internal |
| 34 | reverse_proxy localhost:30000 | 34 | # reverse_proxy localhost:30000 |
| 35 | encode zstd gzip | 35 | # encode zstd gzip |
| 36 | ''; | 36 | # ''; |
| 37 | | 37 | |
| 38 | virtualHosts."10.154.1.105".extraConfig = '' | 38 | # virtualHosts."10.154.1.105".extraConfig = '' |
| 39 | tls internal | 39 | # tls internal |
| 40 | reverse_proxy localhost:30000 | 40 | # reverse_proxy localhost:30000 |
| 41 | encode zstd gzip | 41 | # encode zstd gzip |
| 42 | ''; | 42 | # ''; |
| 43 | | 43 | # |
| 44 | virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' | 44 | # virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' |
| 45 | reverse_proxy localhost:30000 | 45 | # reverse_proxy localhost:30000 |
| 46 | encode zstd gzip | 46 | # 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 | }; |
| 49 | | 75 | |