OpenWebIf and caddy

Looks like it’s HTTP traffic. Should be doable with the basic format:

http://example.com:8001 {
  proxy / [Enigma-2]:8001
}

http://example.com:8002 {
  proxy / [Enigma-2]:8002
}

Alternately, you could look into the net server type to proxy the TCP traffic.

https://caddyserver.com/docs/net

This might be difficult unless you can configure OpenWebIf to generate a .m3u8 file with a different target port. You’d also have to key the sites off the hostname, e.g.

http://raw.example.com {
  proxy / [Enigma-2]:8001
}
http://transcoded.example.com {
  proxy / [Enigma-2]:8002
}

And the .m3u8 files would have to reflect that, I expect.