aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Jakub Økland <ergopoe@protonmail.ch>2020-12-03 13:52:00 +0000
committerGitHub <noreply@github.com>2020-12-03 13:52:00 +0000
commit19b1d40d6479ac73cf4073c23f9ee291e3d5d112 (patch)
treeeaca043cf6f46ca63c85082ce8197b1e44cfe0d8
parent52905ffb82409fca9665ada0c8da40e05b58b8be (diff)
Hiawatha reverse proxy sample for monolith and fixes to polylith sample (#1609)
* Created polylith reverse proxy sample for Hiawatha * Create monolith-sample.conf * Added timeout to proxies and binding explanation. * Fixed typo. * Consistency with regards to polylith-sample.conf.
-rw-r--r--docs/hiawatha/monolith-sample.conf17
-rw-r--r--docs/hiawatha/polylith-sample.conf22
2 files changed, 34 insertions, 5 deletions
diff --git a/docs/hiawatha/monolith-sample.conf b/docs/hiawatha/monolith-sample.conf
new file mode 100644
index 00000000..8285c0bd
--- /dev/null
+++ b/docs/hiawatha/monolith-sample.conf
@@ -0,0 +1,17 @@
+# Depending on which port is used for federation (.well-known/matrix/server or SRV record),
+# ensure there's a binding for that port in the configuration. Replace "FEDPORT" with port
+# number, (e.g. "8448"), and "IPV4" with your server's ipv4 address (separate binding for
+# each ip address, e.g. if you use both ipv4 and ipv6 addresses).
+
+Binding {
+ Port = FEDPORT
+ Interface = IPV4
+ TLScertFile = /path/to/fullchainandprivkey.pem
+}
+
+VirtualHost {
+ ...
+ ReverseProxy = /_matrix http://localhost:8008 600
+ ...
+
+}
diff --git a/docs/hiawatha/polylith-sample.conf b/docs/hiawatha/polylith-sample.conf
index 99730efd..5ed0cb5a 100644
--- a/docs/hiawatha/polylith-sample.conf
+++ b/docs/hiawatha/polylith-sample.conf
@@ -1,3 +1,15 @@
+# Depending on which port is used for federation (.well-known/matrix/server or SRV record),
+# ensure there's a binding for that port in the configuration. Replace "FEDPORT" with port
+# number, (e.g. "8448"), and "IPV4" with your server's ipv4 address (separate binding for
+# each ip address, e.g. if you use both ipv4 and ipv6 addresses).
+
+Binding {
+ Port = FEDPORT
+ Interface = IPV4
+ TLScertFile = /path/to/fullchainandprivkey.pem
+}
+
+
VirtualHost {
...
# route requests to:
@@ -7,10 +19,10 @@ VirtualHost {
# /_matrix/client/.*/keys/changes
# /_matrix/client/.*/rooms/{roomId}/messages
# to sync_api
- ReverseProxy = /_matrix/client/.*?/(sync|user/.*?/filter/?.*|keys/changes|rooms/.*?/messages) http://localhost:8073
- ReverseProxy = /_matrix/client http://localhost:8071
- ReverseProxy = /_matrix/federation http://localhost:8072
- ReverseProxy = /_matrix/key http://localhost:8072
- ReverseProxy = /_matrix/media http://localhost:8074
+ ReverseProxy = /_matrix/client/.*?/(sync|user/.*?/filter/?.*|keys/changes|rooms/.*?/messages) http://localhost:8073 600
+ ReverseProxy = /_matrix/client http://localhost:8071 600
+ ReverseProxy = /_matrix/federation http://localhost:8072 600
+ ReverseProxy = /_matrix/key http://localhost:8072 600
+ ReverseProxy = /_matrix/media http://localhost:8074 600
...
}