Changed index to www redirect.
authorLuke Hoersten <luke@hoersten.org>
Mon, 08 Jun 2020 17:18:28 -0500
changeset 99 ed9f4d0ddce3
parent 98 444887b61044
child 100 ac5e16a08576
Changed index to www redirect.
pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2
--- a/pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2	Sat May 16 12:57:37 2020 -0500
+++ b/pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2	Mon Jun 08 17:18:28 2020 -0500
@@ -40,10 +40,8 @@
     # the nginx default is 1m, not enough for large media uploads
     client_max_body_size 16m;
 
-    root {{nginx_html_root}};
-
     location = / {
-        index index.html;
+        return 301 http://www.$host$request_uri;
     }
 
     location / {