Skip to content

nginx-site

nginx-site. Serves a static site through an nginx container; binds container and http.

apps.nginx-site.main = {
port = 8080;
};

Provides

None.

Needs

container1 options
  • <slot>podule provider reference (apps.<type>.<instance> or impl.<contract>.<name>)

    A named container the app renders. Bind a container provider, such as impl.container.nginx, to it.

http7 options
  • hostnull or string

    Fully qualified host. Defaults to the consumer DNS label under the bound zone.

    Default
    null
  • ingressClassNamenull or string

    Bound IngressClass. Written by the http provider.

    Default
    null
  • pathPrefixstring

    Path prefix the Ingress routes on.

    Default
    "/"
  • portnull or 16 bit unsigned integer; between 0 and 65535 (both inclusive)

    Backend Service port. Defaults to the port the app declares.

    Default
    null
  • providernull or (podule provider reference (apps.<type>.<instance> or impl.<contract>.<name>))

    Overrides providers.http for this need.

    Default
    null
  • publicUrlnull or string

    Bound public URL, always https. Written by the http provider.

    Default
    null
  • tlsSecretNamenull or string

    Bound name of the TLS Secret. Written by the http provider.

    Default
    null
  • port16 bit unsigned integer; between 0 and 65535 (both inclusive)

    Port nginx listens on.

    Default
    80