Skip to content

Refactor listener config #28

@magiconair

Description

@magiconair

The listener configuration in proxy.addr seemed like a good idea but wasn't. To provide parameters for read and write timeout and reuse the same configuration also for the UI (see issue #25) I'm planning to change the configuration of the listeners as follows:

# proxy.listen configures one or more listeners for the reverse proxy.
#
# The default is to create a single HTTP listener on :9999 without
# authentication. Listeners which have a valid certificate are on HTTPS. If the
# certificate file contains both the certificate and the private key then the
# 'key' parameter can be omitted. For HTTPS connections X509 client certificate
# authentication can be configured which is set to RequireAndVerifyCert when
# enabled.
#
# All certificates and keys must be in PEM format.
#
# To configure the listener you can set the following options:
#
# proxy.listen.<name>.addr; listen address
# proxy.listen.<name>.tlsCert: path to TLS certificate file
# proxy.listen.<name>.tlsKey: path to TLS key file
# proxy.listen.<name>.clientCert: path to client certficate file
# proxy.listen.<name>.readTimeout: read timeout
# proxy.listen.<name>.writeTimeout: write timeout

The same options will be available for the UI/API listener and the same code will start all listeners.

proxy.addr and ui.addr will be deprecated with a startup warning and removed in a later release.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions