mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
do not hsts preload by default, only serve hsts header over https
Signed-off-by: Giuseppe C <AvverbioPronome@users.noreply.github.com>
This commit is contained in:
parent
c506b22f9e
commit
c143accdfc
@ -194,6 +194,9 @@ EOF
|
||||
LimitRequestBody 0
|
||||
SSLRenegBufferSize 10486000
|
||||
</Directory>
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
EOF
|
||||
a2ensite nextcloud
|
||||
@ -206,6 +209,14 @@ EOF
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||
</IfModule>
|
||||
<Directory /var/www/nextcloud/>
|
||||
Options +FollowSymlinks
|
||||
AllowOverride All
|
||||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
LimitRequestBody 0
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
EOF
|
||||
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
|
||||
[v1.29.6](https://github.com/nextcloud/nextcloudpi/commit/55e16b2) (2020-08-29) ncp-web: Fix the style of the language selection dropdown (chrome)
|
||||
[v1.29.7](https://github.com/nextcloud/nextcloudpi/commit/d98e7ad) (2020-07-24) do not hsts preload by default, only serve hsts header over https
|
||||
|
||||
[v1.29.6](https://github.com/nextcloud/nextcloudpi/commit/14b78e3) (2020-08-29) ncp-web: Fix the style of the language selection dropdown (chrome)
|
||||
|
||||
[v1.29.5 ](https://github.com/nextcloud/nextcloudpi/commit/34e84ba) (2020-08-30) ncp-web: fix initial screen displaying all sections
|
||||
|
||||
|
||||
6
lamp.sh
6
lamp.sh
@ -73,12 +73,6 @@ SSLUseStapling on
|
||||
SSLStaplingResponderTimeout 5
|
||||
SSLStaplingReturnResponderErrors off
|
||||
SSLStaplingCache shmcb:/var/run/ocsp(128000)
|
||||
EOF
|
||||
|
||||
cat >> /etc/apache2/apache2.conf <<EOF
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
</IfModule>
|
||||
EOF
|
||||
|
||||
# CONFIGURE PHP7
|
||||
|
||||
3
ncp.sh
3
ncp.sh
@ -73,6 +73,9 @@ Listen 4443
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
|
||||
</IfModule>
|
||||
|
||||
# 2 days to avoid very big backups requests to timeout
|
||||
TimeOut 172800
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user