Files
stack/traefik/plugins/src/github.com/packruler/rewrite-body/rewritebody.go
kert 4a50009445 add reef: parameterized service framework with Go sprig templates
Single registry drives Traefik routing, Prometheus scraping, and
the dashboard. FQDN pattern: {service}.{DOMAIN}. Adding a service
= one line in the reef dict + a compose block.

- Parameterize .env (DOMAIN, HOST_IP, S3_*, etc.) and compose.yml
- Zero-trust: remove host port exposure from postgres, rustfs, jaeger
- Traefik Go template replaces 193-line hand-written routing config
- Fold middlewares.yml into the template, delete separate file
- Prometheus switches to file_sd_configs with targets registry
- Dashboard uses JS domain resolution (zero hardcoded FQDNs)
- Grafana provisioning: datasources for Prometheus, Loki, Jaeger
- Vendor rewrite-body plugin (remove nested .git, track as files)
- Trino catalog uses ${ENV:...} for S3 settings
- CI: split traefik validation (yamllint static + template render)
- Add .env.example documenting all deployment knobs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 17:06:49 -05:00

20 lines
523 B
Go

// Package rewrite_body a plugin to rewrite response body.
package rewrite_body
import (
"context"
"net/http"
"github.com/packruler/rewrite-body/handler"
)
// CreateConfig creates and initializes the plugin configuration.
func CreateConfig() *handler.Config {
return &handler.Config{}
}
// New creates and returns a new rewrite body plugin instance.
func New(context context.Context, next http.Handler, config *handler.Config, name string) (http.Handler, error) {
return handler.New(context, next, config, name)
}