</code></pre></div><p><strong>Please note the template is tied to the Go code. Do not change names in the variable <code>$cfg</code>.</strong></p><p>For more information about the template syntax please check the <ahref=https://golang.org/pkg/text/template/>Go template package</a>. In addition to the built-in functions provided by the Go package the following functions are also available:</p><ul><li>empty: returns true if the specified parameter (string) is empty</li><li>contains: <ahref=https://golang.org/pkg/strings/#Contains>strings.Contains</a></li><li>hasPrefix: <ahref=https://golang.org/pkg/strings/#HasPrefix>strings.HasPrefix</a></li><li>hasSuffix: <ahref=https://golang.org/pkg/strings/#HasSuffix>strings.HasSuffix</a></li><li>toUpper: <ahref=https://golang.org/pkg/strings/#ToUpper>strings.ToUpper</a></li><li>toLower: <ahref=https://golang.org/pkg/strings/#ToLower>strings.ToLower</a></li><li>split: <ahref=https://golang.org/pkg/strings/#Split>strings.Split</a></li><li>quote: wraps a string in double quotes</li><li>buildLocation: helps to build the NGINX Location section in each server</li><li>buildProxyPass: builds the reverse proxy configuration</li><li>buildRateLimit: helps to build a limit zone inside a location if contains a rate limit annotation</li></ul><p>TODO:</p><ul><li>buildAuthLocation:</li><li>buildAuthResponseHeaders:</li><li>buildResolvers:</li><li>buildDenyVariable:</li><li>buildUpstreamName:</li><li>buildForwardedFor:</li><li>buildAuthSignURL:</li><li>buildNextUpstream:</li><li>filterRateLimits:</li><li>formatIP:</li><li>getenv:</li><li>getIngressInformation:</li><li>serverConfig:</li><li>isLocationAllowed:</li><li>isValidClientBodyBufferSize:</li></ul></article></div></div></main><footerclass=md-footer><divclass="md-footer-meta md-typeset"><divclass="md-footer-meta__inner md-grid"><divclass=md-copyright> Made with <ahref=https://squidfunk.github.io/mkdocs-material/target=_blankrel=noopener> Material for MkDocs </a></div></div></div></footer></div><divclass=md-dialogdata-md-component=dialog><divclass="md-dialog__inner md-typeset"></div></div><scriptid=__configtype=application/json>{"base":"../../..","features":["navigation.tabs","navigation.tabs.sticky","navigation.instant","navigation.sections"],"search":"../../../assets/javascripts/workers/search.f886a092.min.js","translations":{"clipboard.copied":"Copied to clipboard","clipboard.copy":"Copy to clipboard","search.result.more.one":"1 more on this page","search.result.more.other":"# more on this page","search.result.none":"No matching documents","search.result.one":"1 matching document","search.result.other":"# matching documents","search.result.placeholder":"Type to start searching","search.result.term.missing":"Missing","select.version":"Select version"}}</script><scriptsrc=../../../assets/javascripts/bundle.aecac24b.min.js></script></body></html>