mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
matrixsynapse: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - Login to Matrix using app.element.io works. - Fail2ban rules work Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
0e82c58f1b
commit
c326b35238
5 files changed
+12
-1
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
##
|
||||
## On all sites, provide Matrix Synapse on a default path: /_matrix. This is
|
||||
## only useful for clients to login without specifying a server port. This is
|
||||
## not useful for federation which requires SRV record or listening on port
|
||||
## 8448. Further, federation requires same TLS public key to be provided to
|
||||
## Apache and Matrix Synapse server.
|
||||
##
|
||||
ProxyPass /_matrix http://localhost:8008/_matrix nocanon
|
||||
ProxyPassReverse /_matrix http://localhost:8008/_matrix
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
[INCLUDES]
|
||||
before = common.conf
|
||||
|
||||
[Definition]
|
||||
_daemon = apache-access
|
||||
prefregex = %(__prefix_line)s
|
||||
failregex = \S+ <HOST> - \S+ \[[^\]]*\] "POST /_matrix/client/.*/login HTTP/\S+" 403
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
[matrix-auth-freedombox]
|
||||
enabled = true
|
||||
port = http,https
|
||||
journalmatch = SYSLOG_IDENTIFIER=apache-access
|
||||
Reference in new issue
Block a user