File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed
Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 194194 LimitRequestBody 0
195195 SSLRenegBufferSize 10486000
196196 </Directory>
197+ <IfModule mod_headers.c>
198+ Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
199+ </IfModule>
197200</IfModule>
198201EOF
199202 a2ensite nextcloud
206209 RewriteCond %{HTTPS} !=on
207210 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
208211 </IfModule>
212+ <Directory /var/www/nextcloud/>
213+ Options +FollowSymlinks
214+ AllowOverride All
215+ <IfModule mod_dav.c>
216+ Dav off
217+ </IfModule>
218+ LimitRequestBody 0
219+ </Directory>
209220</VirtualHost>
210221EOF
211222
Original file line number Diff line number Diff line change 11
2- [ v1.29.6] ( https://github.com/nextcloud/nextcloudpi/commit/55e16b2 ) (2020-08-29) ncp-web: Fix the style of the language selection dropdown (chrome)
2+ [ 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
3+
4+ [ v1.29.6] ( https://github.com/nextcloud/nextcloudpi/commit/14b78e3 ) (2020-08-29) ncp-web: Fix the style of the language selection dropdown (chrome)
35
46[ v1.29.5 ] ( https://github.com/nextcloud/nextcloudpi/commit/34e84ba ) (2020-08-30) ncp-web: fix initial screen displaying all sections
57
Original file line number Diff line number Diff line change @@ -73,12 +73,6 @@ SSLUseStapling on
7373SSLStaplingResponderTimeout 5
7474SSLStaplingReturnResponderErrors off
7575SSLStaplingCache shmcb:/var/run/ocsp(128000)
76- EOF
77-
78- cat >> /etc/apache2/apache2.conf << EOF
79- <IfModule mod_headers.c>
80- Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
81- </IfModule>
8276EOF
8377
8478 # CONFIGURE PHP7
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ Listen 4443
7373 SSLEngine on
7474 SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
7575 SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
76+ <IfModule mod_headers.c>
77+ Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
78+ </IfModule>
7679
7780 # 2 days to avoid very big backups requests to timeout
7881 TimeOut 172800
You can’t perform that action at this time.
0 commit comments