## SPDX-License-Identifier: AGPL-3.0-or-later ## ## DO NOT EDIT. If you do, FreedomBox will not automatically upgrade. ## ## Apache configuration managed by FreedomBox. If customization is needed, ## create a new configuration file with higher priority and override directives. ## ## ## TLS configuration as recommended by Mozilla's SSL Configuration Generator ## with 'Intermediate' configuration. See: ## https://wiki.mozilla.org/Security/Server_Side_TLS ## # Disable ciphers that are weak or without forward secrecy. SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 # Allow client to choose ciphers as they will know best if they have support # for hardware-accelerated AES. SSLHonorCipherOrder off # TLS session tickets (RFC 5077) require restarting web server with an # appropriate frequency. See: # https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslsessiontickets SSLSessionTickets off # Send OCSP responses to the client and reduce their round trips. SSLUseStapling On SSLStaplingCache "shmcb:${APACHE_RUN_DIR}/ssl_stapling(32768)" ## ## Enable HSTS, even for subdomains. ## Header set Strict-Transport-Security "max-age=31536000; includeSubDomains" env=HTTPS ## ## Redirect traffic on home to /plinth as part of turning the machine ## into FreedomBox server. Plinth then acts as a portal to reach all ## other services. ## RedirectMatch "^/$" "/plinth" ## ## Disable sending Referer (sic) header from FreedomBox web interface to ## external websites. This improves privacy by not disclosing FreedomBox ## domains/URLs to external domains. Apps such as blogs which want to popularize ## themselves with referrer header may still do so. ## ## A strict Content Security Policy. ## - @fonts are allowed only from FreedomBox itself. ## - /