From 508a22b5df5a4bd6a06f5dfe4527487ac4f094a3 Mon Sep 17 00:00:00 2001
From: reivilibre
NOTE: This has an impact on security and is for testing purposes only!
To deactivate the certificate validation, the following setting must be added to -your homserver.yaml.
+your homeserver.yaml.use_insecure_ssl_client_just_for_testing_do_not_use: true
diff --git a/latest/setup/installation.html b/latest/setup/installation.html
index 06c9743a31..5fc1f87661 100644
--- a/latest/setup/installation.html
+++ b/latest/setup/installation.html
@@ -367,7 +367,47 @@ header files for Python C extensions.
libwebp-devel libxml2-devel libxslt-devel libpq-devel \
python3-virtualenv libffi-devel openssl-devel python3-devel \
libicu-devel
-sudo dnf groupinstall "Development Tools"
+sudo dnf group install "Development Tools"
+
+Note: The term "RHEL" below refers to both Red Hat Enterprise Linux and Rocky Linux. The distributions are 1:1 binary compatible.
+It's recommended to use the latest Python versions.
+RHEL 8 in particular ships with Python 3.6 by default which is EOL and therefore no longer supported by Synapse. RHEL 9 ship with Python 3.9 which is still supported by the Python core team as of this writing. However, newer Python versions provide significant performance improvements and they're available in official distributions' repositories. Therefore it's recommended to use them.
+Python 3.11 and 3.12 are available for both RHEL 8 and 9.
+These commands should be run as root user.
+RHEL 8
+# Enable PowerTools repository
+dnf config-manager --set-enabled powertools
+
+RHEL 9
+# Enable CodeReady Linux Builder repository
+crb enable
+
+Install new version of Python. You only need one of these:
+# Python 3.11
+dnf install python3.11 python3.11-devel
+
+# Python 3.12
+dnf install python3.12 python3.12-devel
+
+Finally, install common prerequisites
+dnf install libicu libicu-devel libpq5 libpq5-devel lz4 pkgconf
+dnf group install "Development Tools"
+
+It's recommended to use Python venv module directly rather than the virtualenv command.
+Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI.
+mkdir -p ~/synapse
+# To use Python 3.11, simply use the command "python3.11" instead.
+python3.12 -m venv ~/synapse/env
+source ~/synapse/env/bin/activate
+pip install --upgrade pip
+pip install --upgrade setuptools
+pip install matrix-synapse
Installing prerequisites on macOS:
-- cgit 1.5.1