Configuration option | Description |
port | Required. The user-defined port on which the server is accessible. Type: integer. |
bindAddress | Optional. Binds to specific interfaces, potentially on multiple ports. Each entry is either a host, or a host:port combination. If a port is provided, it is used. Otherwise, the port option applies. The default is to bind to all interfaces on the configured port. Type: string or list<string>. Default: blank. |
tls | Optional. Set this to true to enable TLS (https). Type: bool. Default: false. |
tlsCertificateFile | The server certificate file in PEM format. Required if TLS is enabled. Type: path. |
tlsKeyFile | The private key for the certificate in PEM format. Required if TLS is enabled. Type: path. |
connectionTimeoutSecs | Maximum time to handle a single request before returning a timeout (in seconds). Type: integer. Default: 60. |
maxConnections | Maximum number of simultaneous connections which can be handled. Type: integer. Default: 16. |
staticFiles | Optional. Map of static files. Elements are of the form: /url: file: ${PARENT_DIR}/source_file.txt contentType: text/plain charset: utf-8 file and contentType are required, charset is optional. Type: Map. Default: undefined. |
Configuration option | Description |
authentication/authenticationType | Set this to HTTP_BASIC if you require HTTP basic authentication. Type: HTTP_BASIC or none. Default: none. |
authentication/allowedUsersFile | Path to the password file (see Authentication). Required if the authentication type is HTTP_BASIC. Type: path. |
authentication/maxAttempts | Maximum number of failed login attempts before throttling the requests for that user. See Authentication for more information. Type: integer. Default: 3. |
authentication/coolDownSecs | Number of seconds after the maximum number of failed login attempts before the HTTP server attempts authentication of the user again. See Authentication for more information. Type: integer. Default: 20. |
automaticResponses | false is currently an error. We will support fully controlled responses in future releases. Currently, you must set this to true. Type: bool. Default: false. |
allowedMethods | Required. List of permitted HTTP verbs (for example, PUT or GET). Type: string or list<string>. |
maxRequestBytes | Maximum permitted HTTP payload size in bytes. Type: integer. Default: 1048576 (1MB). |