Marketplace

Caddy

Other

Caddy reverse-proxy driver.

togo-framework
bash
togo install togo-framework/dns-caddy

Install

bash
togo install togo-framework/dns-caddy

Caddy 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_DRIVERset to caddy
CADDY_ADMINadmin endpoint (default http://localhost:2019)
CADDY_SERVERserver key in the Caddy config (default srv0)
Rows per page
1–3 of 3
Page 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> &nbsp;·&nbsp; <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>