summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-21 14:53:16 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-21 14:53:16 +0100
commite8ed9a6016d15907b2b7eb30fbf7e7831cbb1b94 (patch)
tree632f49eada8b4e8f15603fbd052ae3b1c53a2886 /synapse/config/server.py
parentMerge commit 'f43c66d23' into anoa/dinsic_release_1_21_x (diff)
parentUpdate description of server_name config option (#8415) (diff)
downloadsynapse-e8ed9a6016d15907b2b7eb30fbf7e7831cbb1b94.tar.xz
Merge commit '8238b55e0' into anoa/dinsic_release_1_21_x
* commit '8238b55e0':
  Update description of server_name config option (#8415)
  Discard an empty upload_name before persisting an uploaded file (#7905)
  Don't table scan events on worker startup (#8419)
  Mypy fixes for `synapse.handlers.federation` (#8422)
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r--synapse/config/server.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py

index eff2a846a4..9a5c7cb0ab 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py
@@ -647,10 +647,23 @@ class ServerConfig(Config): """\ ## Server ## - # The domain name of the server, with optional explicit port. - # This is used by remote servers to connect to this server, - # e.g. matrix.org, localhost:8080, etc. - # This is also the last part of your UserID. + # The public-facing domain of the server + # + # The server_name name will appear at the end of usernames and room addresses + # created on this server. For example if the server_name was example.com, + # usernames on this server would be in the format @user:example.com + # + # In most cases you should avoid using a matrix specific subdomain such as + # matrix.example.com or synapse.example.com as the server_name for the same + # reasons you wouldn't use user@email.example.com as your email address. + # See https://github.com/matrix-org/synapse/blob/master/docs/delegate.md + # for information on how to host Synapse on a subdomain while preserving + # a clean server_name. + # + # The server_name cannot be changed later so it is important to + # configure this correctly before you start Synapse. It should be all + # lowercase and may contain an explicit port. + # Examples: matrix.org, localhost:8080 # server_name: "%(server_name)s"