mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Use HSTS in apache conf. Fixes #47.
This commit is contained in:
parent
0ec794aaa7
commit
96310b4366
1
Makefile
1
Makefile
@ -100,6 +100,7 @@ apache-config: apache-install apache-ssl
|
||||
apache-ssl:
|
||||
make-ssl-cert generate-default-snakeoil
|
||||
a2enmod ssl
|
||||
a2enmod headers
|
||||
a2enmod rewrite
|
||||
a2enmod proxy
|
||||
a2enmod proxy_http
|
||||
|
||||
@ -21,6 +21,9 @@
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
## Use HTTP Strict Transport Security to force client to use secure connections only
|
||||
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
|
||||
## Shared options.
|
||||
ProxyPreserveHost on
|
||||
DocumentRoot /usr/share/plinth
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user