Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-01-15 07:06:42 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-15 07:06:46 +0300
commit2ac9b8b97bb1103c0979890ee22ae8459503e307 (patch)
tree70f2b5d22e87c6fb9802c527d3e261a7b19dfe77
parent34cba9f52876dd1b0026c1ed6d7ab3796926c79d (diff)
ncp-web: allow private IPv6 addressesv1.3.7
-rw-r--r--changelog.md6
-rw-r--r--ncp.sh1
-rwxr-xr-xupdate.sh25
3 files changed, 30 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md
index 57c40ffa..884509b9 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,7 +1,9 @@
-[v1.3.6](https://github.com/nextcloud/nextcloudpi/commit/fc80dc9) (2019-01-14) nc-automount: add delays to some services in a persistent way
+[v1.3.7](https://github.com/nextcloud/nextcloudpi/commit/05bfc13) (2019-01-14) ncp-web: allow private IPv6 addresses
-[v1.3.5](https://github.com/nextcloud/nextcloudpi/commit/6fb9c9b) (2019-01-14) nc-hdd-test: try to detect device type if auto doesnt work
+[v1.3.6](https://github.com/nextcloud/nextcloudpi/commit/34cba9f) (2019-01-14) nc-automount: add delays to some services in a persistent way
+
+[v1.3.5 ](https://github.com/nextcloud/nextcloudpi/commit/6fb9c9b) (2019-01-14) nc-hdd-test: try to detect device type if auto doesnt work
[v1.3.4 ](https://github.com/nextcloud/nextcloudpi/commit/9b1ecbb) (2019-01-14) nc-info: fix automount reporting
diff --git a/ncp.sh b/ncp.sh
index 44b816ad..0ba7bbe9 100644
--- a/ncp.sh
+++ b/ncp.sh
@@ -58,6 +58,7 @@ EOF
Require ip 192.168
Require ip 172
Require ip 10
+ Require ip fd00::/8
</RequireAny>
</RequireAll>
diff --git a/update.sh b/update.sh
index 221f514a..987559b8 100755
--- a/update.sh
+++ b/update.sh
@@ -214,6 +214,31 @@ cp -r ncp-app /var/www/
ncc app:enable nextcloudpi
}
+ # allow private IPv6 addresses
+ cat > /etc/apache2/sites-available/ncp-activation.conf <<EOF
+<VirtualHost _default_:443>
+ DocumentRoot /var/www/ncp-web/
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
+ SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
+
+</VirtualHost>
+<Directory /var/www/ncp-web/>
+ <RequireAll>
+
+ <RequireAny>
+ Require host localhost
+ Require local
+ Require ip 192.168
+ Require ip 172
+ Require ip 10
+ Require ip fd00::/8
+ </RequireAny>
+
+ </RequireAll>
+</Directory>
+EOF
+
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
# Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last)
[[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )"