Block some other cryptpad links, so that the version number isn't obvious
This commit is contained in:
parent
d66536ab40
commit
1e489fdeb0
|
@ -287,6 +287,22 @@ function install_cryptpad_main {
|
||||||
echo ' try_files $uri =404;' >> $cryptpad_nginx_site
|
echo ' try_files $uri =404;' >> $cryptpad_nginx_site
|
||||||
echo ' }' >> $cryptpad_nginx_site
|
echo ' }' >> $cryptpad_nginx_site
|
||||||
echo '' >> $cryptpad_nginx_site
|
echo '' >> $cryptpad_nginx_site
|
||||||
|
echo ' location ^~ /about.html {' >> $cryptpad_nginx_site
|
||||||
|
echo ' try_files $uri =404;' >> $cryptpad_nginx_site
|
||||||
|
echo ' }' >> $cryptpad_nginx_site
|
||||||
|
echo '' >> $cryptpad_nginx_site
|
||||||
|
echo ' location ^~ /contact.html {' >> $cryptpad_nginx_site
|
||||||
|
echo ' try_files $uri =404;' >> $cryptpad_nginx_site
|
||||||
|
echo ' }' >> $cryptpad_nginx_site
|
||||||
|
echo '' >> $cryptpad_nginx_site
|
||||||
|
echo ' location ^~ /contact.html {' >> $cryptpad_nginx_site
|
||||||
|
echo ' try_files $uri =404;' >> $cryptpad_nginx_site
|
||||||
|
echo ' }' >> $cryptpad_nginx_site
|
||||||
|
echo '' >> $cryptpad_nginx_site
|
||||||
|
echo ' location ^~ /what-is-cryptpad.html {' >> $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 ' location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media)$ {' >> $cryptpad_nginx_site
|
||||||
echo ' rewrite ^(.*)$ $1/ redirect;' >> $cryptpad_nginx_site
|
echo ' rewrite ^(.*)$ $1/ redirect;' >> $cryptpad_nginx_site
|
||||||
echo ' }' >> $cryptpad_nginx_site
|
echo ' }' >> $cryptpad_nginx_site
|
||||||
|
|
Loading…
Reference in New Issue