diff options
author | DMRobertson <DMRobertson@users.noreply.github.com> | 2021-11-01 11:36:20 +0000 |
---|---|---|
committer | DMRobertson <DMRobertson@users.noreply.github.com> | 2021-11-01 11:36:20 +0000 |
commit | 6b78680875d9e721d46e4f3d34047c6a3fbd2f33 (patch) | |
tree | d64455b2305504485a55d2fec294620c72e6398d /develop/upgrade.html | |
parent | deploy: e320f5dba32f5b5818b6d5a0059ae388430b9a72 (diff) | |
download | synapse-6b78680875d9e721d46e4f3d34047c6a3fbd2f33.tar.xz |
deploy: ece84f2c450d986e54acc80971225fb02f4e1d05
Diffstat (limited to 'develop/upgrade.html')
-rw-r--r-- | develop/upgrade.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/develop/upgrade.html b/develop/upgrade.html index 819573d2d7..acd6aa81bb 100644 --- a/develop/upgrade.html +++ b/develop/upgrade.html @@ -1118,13 +1118,13 @@ recommend switching to Python 3, as it has been shown to give performance improvements.</p> <p>For users who have installed Synapse into a virtualenv, we recommend doing this by creating a new virtualenv. For example:</p> -<pre><code>virtualenv -p python3 ~/synapse/env3 +<pre><code class="language-sh">virtualenv -p python3 ~/synapse/env3 source ~/synapse/env3/bin/activate pip install matrix-synapse </code></pre> <p>You can then start synapse as normal, having activated the new virtualenv:</p> -<pre><code>cd ~/synapse +<pre><code class="language-sh">cd ~/synapse source env3/bin/activate synctl start </code></pre> @@ -1138,7 +1138,7 @@ files are configured as UTF-8, by adding <code>encoding: utf8</code> to the <code>RotatingFileHandler</code> configuration (if you have one) in your <code><server>.log.config</code> file. For example, if your <code>log.config</code> file contains:</p> -<pre><code>handlers: +<pre><code class="language-yaml">handlers: file: class: logging.handlers.RotatingFileHandler formatter: precise @@ -1152,7 +1152,7 @@ file contains:</p> filters: [context] </code></pre> <p>Then you should update this to be:</p> -<pre><code>handlers: +<pre><code class="language-yaml">handlers: file: class: logging.handlers.RotatingFileHandler formatter: precise @@ -1238,10 +1238,10 @@ too big of a security risk to ignore, and so the ability to register with the HS remotely has been removed.</p> <p>It has been replaced by specifying a list of application service registrations in <code>homeserver.yaml</code>:</p> -<pre><code>app_service_config_files: ["registration-01.yaml", "registration-02.yaml"] +<pre><code class="language-yaml">app_service_config_files: ["registration-01.yaml", "registration-02.yaml"] </code></pre> <p>Where <code>registration-01.yaml</code> looks like:</p> -<pre><code>url: <String> # e.g. "https://my.application.service.com" +<pre><code class="language-yaml">url: <String> # e.g. "https://my.application.service.com" as_token: <String> hs_token: <String> sender_localpart: <String> # This is a new field which denotes the user_id localpart when using the AS token |