mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
ncp-web: allow private IPv6 addresses
This commit is contained in:
parent
34cba9f528
commit
2ac9b8b97b
@ -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
|
||||
|
||||
|
||||
1
ncp.sh
1
ncp.sh
@ -58,6 +58,7 @@ EOF
|
||||
Require ip 192.168
|
||||
Require ip 172
|
||||
Require ip 10
|
||||
Require ip fd00::/8
|
||||
</RequireAny>
|
||||
|
||||
</RequireAll>
|
||||
|
||||
25
update.sh
25
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 )"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user