Added index to dendrite nginx template.
authorLuke Hoersten <luke@hoersten.org>
Mon, 19 Jul 2021 21:15:42 -0500
changeset 167 e3c49bf5fae9
parent 166 4ab7efce7321
child 168 8e61e4bb714b
Added index to dendrite nginx template.
dendrite/server/templates/nginx.conf.j2
--- a/dendrite/server/templates/nginx.conf.j2	Mon Jul 19 20:32:56 2021 -0500
+++ b/dendrite/server/templates/nginx.conf.j2	Mon Jul 19 21:15:42 2021 -0500
@@ -39,4 +39,11 @@
     location /_matrix {
         proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
     }
+
+    root /var/www/{{nginx_server_name}};
+    index index.html;
+
+    location / {
+        try_files $uri $uri/ =404;
+    }
 }