mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
don't allow access from nextcloud-aio-nextcloud
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
f518ea7fee
commit
603ce7cca0
1 changed files with 14 additions and 0 deletions
|
|
@ -130,6 +130,20 @@ chown www-data:www-data -R /mnt/docker-aio-config/session/
|
||||||
chown www-data:www-data -R /mnt/docker-aio-config/caddy/
|
chown www-data:www-data -R /mnt/docker-aio-config/caddy/
|
||||||
chown root:root -R /mnt/docker-aio-config/certs/
|
chown root:root -R /mnt/docker-aio-config/certs/
|
||||||
|
|
||||||
|
# Don't allow access to the AIO interface directly from the Nextcloud container
|
||||||
|
# Probably more cosmetic than anything but at least an attempt
|
||||||
|
if ! grep -q '# nextcloud-aio-block' /etc/apache2/apache2.conf; then
|
||||||
|
cat << APACHE_CONF >> /etc/apache2/apache2.conf
|
||||||
|
# nextcloud-aio-block-start
|
||||||
|
<Location />
|
||||||
|
order allow,deny
|
||||||
|
deny from nextcloud-aio-nextcloud.nextcloud-aio
|
||||||
|
allow from all
|
||||||
|
</Location>
|
||||||
|
# nextcloud-aio-block-end
|
||||||
|
APACHE_CONF
|
||||||
|
fi
|
||||||
|
|
||||||
# Adjust certs
|
# Adjust certs
|
||||||
GENERATED_CERTS="/mnt/docker-aio-config/certs"
|
GENERATED_CERTS="/mnt/docker-aio-config/certs"
|
||||||
TMP_CERTS="/etc/apache2/certs"
|
TMP_CERTS="/etc/apache2/certs"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue