Browse Source

Block some other cryptpad links, so that the version number isn't obvious

Bob Mottram 7 years ago
parent
commit
1e489fdeb0
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      src/freedombone-app-cryptpad

+ 16
- 0
src/freedombone-app-cryptpad View File

287
     echo '    try_files $uri =404;' >> $cryptpad_nginx_site
287
     echo '    try_files $uri =404;' >> $cryptpad_nginx_site
288
     echo '  }' >> $cryptpad_nginx_site
288
     echo '  }' >> $cryptpad_nginx_site
289
     echo '' >> $cryptpad_nginx_site
289
     echo '' >> $cryptpad_nginx_site
290
+    echo '  location ^~ /about.html {' >> $cryptpad_nginx_site
291
+    echo '    try_files $uri =404;' >> $cryptpad_nginx_site
292
+    echo '  }' >> $cryptpad_nginx_site
293
+    echo '' >> $cryptpad_nginx_site
294
+    echo '  location ^~ /contact.html {' >> $cryptpad_nginx_site
295
+    echo '    try_files $uri =404;' >> $cryptpad_nginx_site
296
+    echo '  }' >> $cryptpad_nginx_site
297
+    echo '' >> $cryptpad_nginx_site
298
+    echo '  location ^~ /contact.html {' >> $cryptpad_nginx_site
299
+    echo '    try_files $uri =404;' >> $cryptpad_nginx_site
300
+    echo '  }' >> $cryptpad_nginx_site
301
+    echo '' >> $cryptpad_nginx_site
302
+    echo '  location ^~ /what-is-cryptpad.html {' >> $cryptpad_nginx_site
303
+    echo '    try_files $uri =404;' >> $cryptpad_nginx_site
304
+    echo '  }' >> $cryptpad_nginx_site
305
+    echo '' >> $cryptpad_nginx_site
290
     echo '  location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media)$ {' >> $cryptpad_nginx_site
306
     echo '  location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media)$ {' >> $cryptpad_nginx_site
291
     echo '    rewrite ^(.*)$ $1/ redirect;' >> $cryptpad_nginx_site
307
     echo '    rewrite ^(.*)$ $1/ redirect;' >> $cryptpad_nginx_site
292
     echo '  }' >> $cryptpad_nginx_site
308
     echo '  }' >> $cryptpad_nginx_site