aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforest <forest.n.johnson@gmail.com>2020-08-27 13:16:56 -0500
committerforest <forest.n.johnson@gmail.com>2020-08-27 13:16:56 -0500
commitf54a1939e1ff9f283374c3e4cc1e03cdd3b2c241 (patch)
tree3c261d2057875d2da8dd6bfd3cd21ad67b8e3dbc
parent2a497559876c2715e23bebb851c89667b586659c (diff)
downloadops-handbook-f54a1939e1ff9f283374c3e4cc1e03cdd3b2c241.tar.gz
ops-handbook-f54a1939e1ff9f283374c3e4cc1e03cdd3b2c241.tar.bz2
redirect to matrix service page when a user hits https://homeserver_url
-rw-r--r--ansible/roles/synapse/templates/matrix-nginx.conf.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/synapse/templates/matrix-nginx.conf.j2 b/ansible/roles/synapse/templates/matrix-nginx.conf.j2
index ccfccb9..38e49ce 100644
--- a/ansible/roles/synapse/templates/matrix-nginx.conf.j2
+++ b/ansible/roles/synapse/templates/matrix-nginx.conf.j2
@@ -32,6 +32,11 @@ server {
client_max_body_size 10M;
+ # redirect curious web users to the service page for matrix
+ location / {
+ return 301 https://cyberia.club/;
+ }
+
# proxy synapse
location /_matrix {
proxy_pass http://localhost:8008;