Versions in this module Expand all Collapse all v1 v1.0.0 Oct 23, 2023 Changes in this version + var Module = fx.Module("nginx", fx.Provide(New)) + type Config struct + ConfigPath string + ConfigTemplate string + type Context struct + DomainName string + Servers []UpstreamServer + UpstreamName string + type Nginx struct + Config Config + func New(cfg Config) *Nginx + func (n *Nginx) Apply(c Context) error + func (n *Nginx) Remove(hostname string) error + func (n *Nginx) Render(c Context, w io.Writer) error + type UpstreamServer struct + Host string + Options string + Port uint16