src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2021-07-19 21:15:42 -0500
committerLuke Hoersten <[email protected]>2021-07-19 21:15:42 -0500
commit4da09e0dc85dbdc7d089c86189e8799bf5a5741e (patch)
treed21b0cad19b3ed1e65963d12b24d214e75567fd5
parent34672aa5296c8dd6293b5e6460cbd097c37203f8 (diff)
Added index to dendrite nginx template.
-rw-r--r--dendrite/server/templates/nginx.conf.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/dendrite/server/templates/nginx.conf.j2 b/dendrite/server/templates/nginx.conf.j2
index 2f4c319..8e2d34f 100644
--- a/dendrite/server/templates/nginx.conf.j2
+++ b/dendrite/server/templates/nginx.conf.j2
@@ -39,4 +39,11 @@ server {
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;
+ }
}