Skip to content

Commit

Permalink
Only run federation on 8448 and client on 80
Browse files Browse the repository at this point in the history
This disables federation on the 80 port, as it's
not necessary. We also disable the old Angular webclient.

For the federation port (8448), we disable the client APIs
as those are not necessary. Those can even cause trouble
if one doesn't know about them and thinks that guarding the client
APIs at the 80 port is enough.
  • Loading branch information
spantaleev committed Aug 17, 2018
1 parent 1a97a30 commit a302a7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 2018-08-17

## Disabling some unnecessary Synapse services

The following services are not necessary, so they have been disabled:
- on the federation port (8448): the `client` service
- on the http port (80): the old Angular `webclient` and the `federation` service

Federation runs only on the federation port (8448) now.
The Client APIs run only on the http port (80) now.


# 2018-08-15

## mxisd Identity Server support
Expand Down
15 changes: 1 addition & 14 deletions roles/matrix-server/templates/synapse/homeserver.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,6 @@ listeners:

# List of HTTP resources to serve on this listener.
resources:
-
# List of resources to host on this listener.
names:
- client # The client-server APIs, both v1 and v2
- webclient # The bundled webclient.

# Should synapse compress HTTP responses to clients that support it?
# This should be disabled if running synapse behind a load balancer
# that can do automatic compression.
compress: true

- names: [federation] # Federation APIs
compress: false

Expand All @@ -174,10 +163,8 @@ listeners:
x_forwarded: true

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

# Turn on the twisted ssh manhole service on localhost on the given
# port.
Expand Down

0 comments on commit a302a7d

Please sign in to comment.