Merge branch 'stretch' of https://github.com/bashrc/freedombone
This commit is contained in:
commit
825fa10d23
|
@ -483,6 +483,15 @@ function install_nextcloud_main {
|
||||||
echo ' # Index' >> $nextcloud_nginx_site
|
echo ' # Index' >> $nextcloud_nginx_site
|
||||||
echo ' index index.php;' >> $nextcloud_nginx_site
|
echo ' index index.php;' >> $nextcloud_nginx_site
|
||||||
echo '' >> $nextcloud_nginx_site
|
echo '' >> $nextcloud_nginx_site
|
||||||
|
|
||||||
|
# By default nextcloud advertises highly specific version information
|
||||||
|
# on status.php, which can obviously be used by adversaries.
|
||||||
|
# Blocking status.php prevents this information leak
|
||||||
|
echo ' location = /status.php {' >> $nextcloud_nginx_site
|
||||||
|
echo ' return 404;' >> $nextcloud_nginx_site
|
||||||
|
echo ' }' >> $nextcloud_nginx_site
|
||||||
|
echo '' >> $nextcloud_nginx_site
|
||||||
|
|
||||||
echo ' # PHP' >> $nextcloud_nginx_site
|
echo ' # PHP' >> $nextcloud_nginx_site
|
||||||
echo ' location ~ \.php {' >> $nextcloud_nginx_site
|
echo ' location ~ \.php {' >> $nextcloud_nginx_site
|
||||||
echo ' include snippets/fastcgi-php.conf;' >> $nextcloud_nginx_site
|
echo ' include snippets/fastcgi-php.conf;' >> $nextcloud_nginx_site
|
||||||
|
@ -539,6 +548,15 @@ function install_nextcloud_main {
|
||||||
echo ' # Index' >> $nextcloud_nginx_site
|
echo ' # Index' >> $nextcloud_nginx_site
|
||||||
echo ' index index.php;' >> $nextcloud_nginx_site
|
echo ' index index.php;' >> $nextcloud_nginx_site
|
||||||
echo '' >> $nextcloud_nginx_site
|
echo '' >> $nextcloud_nginx_site
|
||||||
|
|
||||||
|
# By default nextcloud advertises highly specific version information
|
||||||
|
# on status.php, which can obviously be used by adversaries.
|
||||||
|
# Blocking status.php prevents this information leak
|
||||||
|
echo ' location = /status.php {' >> $nextcloud_nginx_site
|
||||||
|
echo ' return 404;' >> $nextcloud_nginx_site
|
||||||
|
echo ' }' >> $nextcloud_nginx_site
|
||||||
|
echo '' >> $nextcloud_nginx_site
|
||||||
|
|
||||||
echo ' # PHP' >> $nextcloud_nginx_site
|
echo ' # PHP' >> $nextcloud_nginx_site
|
||||||
echo ' location ~ \.php {' >> $nextcloud_nginx_site
|
echo ' location ~ \.php {' >> $nextcloud_nginx_site
|
||||||
echo ' include snippets/fastcgi-php.conf;' >> $nextcloud_nginx_site
|
echo ' include snippets/fastcgi-php.conf;' >> $nextcloud_nginx_site
|
||||||
|
|
Loading…
Reference in New Issue