oddlama / nix-topology

🍁 Generate infrastructure and network diagrams directly from your NixOS configurations
https://oddlama.github.io/nix-topology
MIT License
572 stars 25 forks source link

feat(extractors/services): add caddy #19

Closed IogaMaster closed 7 months ago

IogaMaster commented 7 months ago

Detects the reverse_proxy routes by filtering extraConfig

            services.caddy = {
              enable = true;
              virtualHosts."jellyfin.home.lan".extraConfig = ''
                reverse_proxy 192.168.25.12:8096
                tls internal
              '';

              virtualHosts."randomservice.home.lan".extraConfig = ''
                reverse_proxy :8096 129.123.132.23:4000 myhost:3434
                tls internal
              '';
            };

Renders to:

image

oddlama commented 7 months ago

This is great, thanks a lot!