src.nth.io/

summaryrefslogtreecommitdiff
path: root/pleroma-otp/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-06-08 17:18:28 -0500
committerLuke Hoersten <[email protected]>2020-06-08 17:18:28 -0500
commitec4bb6bcf789d0312e35ddfa96780931c3b446ea (patch)
tree4ed696da4d7a37e3a438eb6eb3fea79d1702375c /pleroma-otp/templates
parentd8965efa679aad0ee0db05459b4bff158a8c5f19 (diff)
Changed index to www redirect.
Diffstat (limited to 'pleroma-otp/templates')
-rw-r--r--pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j24
1 files changed, 1 insertions, 3 deletions
diff --git a/pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2 b/pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2
index dd32eae..0594f81 100644
--- a/pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2
+++ b/pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2
@@ -40,10 +40,8 @@ server {
# 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 / {