Back to Pocketbase

Interface ServeConfig

static/jsvm/interfaces/apis.ServeConfig.html

latest1.6 KB
Original Source

Interface ServeConfig

ServeConfig defines a configuration struct for apis.Serve().

Hierarchy

  • ServeConfig

Index

Properties

allowedOriginscertificateDomainshttpAddrhttpsAddrshowStartBanner

Properties

allowedOrigins

allowedOrigins: string[]

AllowedOrigins is an optional list of CORS origins (default to "*").

certificateDomains

certificateDomains: string[]

Optional domains list to use when issuing the TLS certificate.

If not set, the host from the bound server address will be used.

For convenience, for each "non-www" domain a "www" entry and redirect will be automatically added.

httpAddr

httpAddr: string

HttpAddr is the TCP address to listen for the HTTP server (eg. "127.0.0.1:80").

httpsAddr

httpsAddr: string

HttpsAddr is the TCP address to listen for the HTTPS server (eg. "127.0.0.1:443").

showStartBanner

showStartBanner: boolean

ShowStartBanner indicates whether to show or hide the server start console message.

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc