From d66536ab401ce94db8c339a1ddbc244d73912f50 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Aug 2017 12:55:53 +0100 Subject: [PATCH] No cryptpad login screen --- src/freedombone-app-cryptpad | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 29121c81..c184f97b 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -283,6 +283,10 @@ function install_cryptpad_main { echo ' try_files $uri =404;' >> $cryptpad_nginx_site echo ' }' >> $cryptpad_nginx_site echo '' >> $cryptpad_nginx_site + echo ' location ^~ /login/ {' >> $cryptpad_nginx_site + echo ' try_files $uri =404;' >> $cryptpad_nginx_site + echo ' }' >> $cryptpad_nginx_site + echo '' >> $cryptpad_nginx_site echo ' location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media)$ {' >> $cryptpad_nginx_site echo ' rewrite ^(.*)$ $1/ redirect;' >> $cryptpad_nginx_site echo ' }' >> $cryptpad_nginx_site