Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Conversation

erikjohnston
Copy link
Member

The format is as follows:

        listeners:
          - port: 8448
            bind_address: ''
            type: http

            tls: false

            resources:
              - names: [client, webclient]
                compress: true
              - names: [federation]
                compress: false

          - port: 8008
            bind_address: ''
            type: http

            tls: true
            x_forwarded: False

            resources:
              - names: [client, webclient]
                compress: true
              - names: [federation]
                compress: false

          - port: 9000
            bind_address: ''
            type: manhole

The current recognized types are http and manhole.

The recognized resources for http are:

  • static - static resources, e.g. registration fallback
  • media - media repository
  • keys - key server
  • client - client APIs, both v1 and v2 ⇒ static and media
  • federation - federation API ⇒ keys and media
  • webclient - hosted webclient
  • metrics - metrics API

TODO:

  • Initial Implementation.
  • Backwards compat with existing format.
  • Compression on a per listener basis
  • Support X-Forwarded-For on a per listener basis.
  • Annotate default config with documentation.
  • [ ] Fully document the listener options somewhere.
  • [ ] Deprecate existing config options. Warn on start up if they're used?

@erikjohnston erikjohnston mentioned this pull request Jun 15, 2015
12 tasks
@NegativeMjark
Copy link
Contributor

LGTM

erikjohnston added a commit that referenced this pull request Jun 15, 2015
@erikjohnston erikjohnston merged commit bc42ca1 into develop Jun 15, 2015
@erikjohnston erikjohnston deleted the erikj/listeners_config branch July 21, 2015 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants