Marketplace
<div align="center"> <h3>Premium sponsors</h3> <p><a href="https://id8media.com"><strong>ID8 Media</strong></a> · <a href="https://one-studio.co"><strong>One Studio</strong></a></p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>
Caddy
OtherCaddy reverse-proxy driver.
togo-framework
bash
togo install togo-framework/dns-caddyInstall
bash
togo install togo-framework/dns-caddyCaddy reverse-proxy driver for togo's
dns subsystem, driven through Caddy's
admin API. Both proxy hosts and gateway routes become Caddy HTTP routes
(host/path matcher → reverse_proxy). Caddy provisions TLS automatically.
Config
Env | Meaning |
|---|---|
| DNS_DRIVER | set to caddy |
| CADDY_ADMIN | admin endpoint (default http://localhost:2019) |
| CADDY_SERVER | server key in the Caddy config (default srv0) |
Rows per page
1–3 of 3Page 1 of 1
go
svc, _ := dns.FromKernel(k)
svc.UpsertProxyHost(ctx, dns.ProxyHost{Domain: "app.example.com", Upstream: "http://127.0.0.1:8080"})
svc.UpsertRoute(ctx, dns.Route{Domain: "api.example.com", Path: "/v1", Upstream: "http://gateway:8000"})
Routes are tagged with a stable @id so an upsert replaces in place. DNS records
return dns.ErrUnsupported.
<div align="center"> <h3>Premium sponsors</h3> <p><a href="https://id8media.com"><strong>ID8 Media</strong></a> · <a href="https://one-studio.co"><strong>One Studio</strong></a></p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>