</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-nav><navclass="md-footer-nav__inner md-grid"aria-label=Footer><ahref=../configmap/class="md-footer-nav__link md-footer-nav__link--prev"rel=prev><divclass="md-footer-nav__button md-icon"><svgxmlns=http://www.w3.org/2000/svgviewbox="0 0 24 24"><pathd="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg></div><divclass=md-footer-nav__title><divclass=md-ellipsis><spanclass=md-footer-nav__direction> Previous </span> ConfigMap </div></div></a><ahref=../log-format/class="md-footer-nav__link md-footer-nav__link--next"rel=next><divclass=md-footer-nav__title><divclass=md-ellipsis><spanclass=md-footer-nav__direction> Next </span> Log format </div></div><divclass="md-footer-nav__button md-icon"><svgxmlns=http://www.w3.org/2000/svgviewbox="0 0 24 24"><pathd="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg></div></a></nav></div><divclass="md-footer-meta md-typeset"><divclass="md-footer-meta__inner md-grid"><divclass=md-footer-copyright> Made with <ahref=https://squidfunk.github.io/mkdocs-material/target=_blankrel=noopener> Material for MkDocs </a></div></div></div></footer></div><scriptsrc=../../../assets/javascripts/vendor.93c04032.min.js></script><scriptsrc=../../../assets/javascripts/bundle.83e5331e.min.js></script><scriptid=__langtype=application/json>{"clipboard.copy":"Copy to clipboard","clipboard.copied":"Copied to clipboard","search.config.lang":"en","search.config.pipeline":"trimmer, stopWordFilter","search.config.separator":"[\\s\\-]+","search.placeholder":"Search","search.result.placeholder":"Type to start searching","search.result.none":"No matching documents","search.result.one":"1 matching document","search.result.other":"# matching documents","search.result.more.one":"1 more on this page","search.result.more.other":"# more on this page","search.result.term.missing":"Missing"}</script><script>