diff options
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/INSTALL.md b/INSTALL.md index a04524cdc7..fd37c2d9b9 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -40,7 +40,7 @@ pip install matrix-synapse[all] This will download Synapse from [PyPI](https://pypi.org/project/matrix-synapse) and install it, along with the python libraries it uses, into a virtual environment -under ``~/synapse/env``. Feel free to pick a different directory if you +under `~/synapse/env`. Feel free to pick a different directory if you prefer. This Synapse installation can then be later upgraded by using pip again with the @@ -88,7 +88,7 @@ You will need to give Synapse a TLS certficate before it will start - see [TLS certificates](#tls-certificates). To actually run your new homeserver, pick a working directory for Synapse to -run (e.g. ``~/synapse``), and:: +run (e.g. `~/synapse`), and:: cd ~/synapse source env/bin/activate @@ -197,19 +197,19 @@ may need to manually upgrade it:: sudo pip install --upgrade pip -Installing may fail with ``Could not find any downloads that satisfy the requirement pymacaroons-pynacl (from matrix-synapse==0.12.0)``. +Installing may fail with `Could not find any downloads that satisfy the requirement pymacaroons-pynacl (from matrix-synapse==0.12.0)`. You can fix this by manually upgrading pip and virtualenv:: sudo pip install --upgrade virtualenv -You can next rerun ``virtualenv -p python3 synapse`` to update the virtual env. +You can next rerun `virtualenv -p python3 synapse` to update the virtual env. -Installing may fail during installing virtualenv with ``InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.`` +Installing may fail during installing virtualenv with `InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.` You can fix this by manually installing ndg-httpsclient:: pip install --upgrade ndg-httpsclient -Installing may fail with ``mock requires setuptools>=17.1. Aborting installation``. +Installing may fail with `mock requires setuptools>=17.1. Aborting installation`. You can fix this by upgrading setuptools:: pip install --upgrade setuptools @@ -459,12 +459,12 @@ Make admin [no]: Success! ``` -This process uses a setting ``registration_shared_secret`` in -``homeserver.yaml``, which is shared between Synapse itself and the -``register_new_matrix_user`` script. It doesn't matter what it is (a random -value is generated by ``--generate-config``), but it should be kept secret, as +This process uses a setting `registration_shared_secret` in +`homeserver.yaml`, which is shared between Synapse itself and the +`register_new_matrix_user` script. It doesn't matter what it is (a random +value is generated by `--generate-config`), but it should be kept secret, as anyone with knowledge of it can register users on your server even if -``enable_registration`` is ``false``. +`enable_registration` is `false`. ## Setting up a TURN server @@ -474,14 +474,14 @@ a TURN server. See [docs/turn-howto.rst](docs/turn-howto.rst) for details. ## URL previews Synapse includes support for previewing URLs, which is disabled by default. To -turn it on you must enable the ``url_preview_enabled: True`` config parameter +turn it on you must enable the `url_preview_enabled: True` config parameter and explicitly specify the IP ranges that Synapse is not allowed to spider for -previewing in the ``url_preview_ip_range_blacklist`` configuration parameter. +previewing in the `url_preview_ip_range_blacklist` configuration parameter. This is critical from a security perspective to stop arbitrary Matrix users spidering 'internal' URLs on your network. At the very least we recommend that your loopback and RFC1918 IP addresses are blacklisted. This also requires the optional lxml and netaddr python dependencies to be installed. This in turn requires the libxml2 library to be available - on -Debian/Ubuntu this means ``apt-get install libxml2-dev``, or equivalent for +Debian/Ubuntu this means `apt-get install libxml2-dev`, or equivalent for your OS. |