From 1dd23b29d01ded9f26ce2cf71532456d551aff78 Mon Sep 17 00:00:00 2001 From: muppeth Date: Tue, 27 Apr 2021 19:17:17 +0000 Subject: [PATCH] cryptpad - commented out by default datastore location (#10) Merge branch 'cryptpad' of git.disroot.org:Disroot-Ansible/nginx into cryptpad fixed Merge branch 'master' into cryptpad Merge branch 'master' into cryptpad cryptpad - commented out by default datastore location Co-authored-by: muppeth Co-authored-by: meaz Reviewed-on: https://git.disroot.org/Disroot-Ansible/nginx/pulls/10 Reviewed-by: antilopa Reviewed-by: meaz Co-Authored-By: muppeth Co-Committed-By: muppeth --- templates/etc/nginx/sites-available/cryptpad.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/etc/nginx/sites-available/cryptpad.j2 b/templates/etc/nginx/sites-available/cryptpad.j2 index 950be27..963affa 100644 --- a/templates/etc/nginx/sites-available/cryptpad.j2 +++ b/templates/etc/nginx/sites-available/cryptpad.j2 @@ -160,6 +160,7 @@ try_files $uri =404; } +{% if item.debug is defined and item.debug == 'true' %} # This block provides an alternative means of loading content # otherwise only served via websocket. This is solely for debugging purposes, # and is thus not allowed by default. @@ -167,6 +168,7 @@ add_header Cache-Control max-age=0; try_files $uri =404; } +{% endif %} # The nodejs server has some built-in forwarding rules to prevent # URLs like /pad from resulting in a 404. This simply adds a trailing slash