8000 GitHub - sualko/cloud_hsts: Adds HSTS header to @Nextcloud response
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sualko/cloud_hsts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Strict Transport Security

GitHub All Releases GitHub license

The only purpose of this Nextcloud application is to add the Strict-Transport-Security header to installations which do not support header configuration via a server configuration file (e.g. .htaccess).

How to install

  1. Download this archive, extract it to apps/ and enable it or install via app store
  2. Visit your page via https
  3. You're done

If you like, you can verify that everything is working as expected with the Security Header Scan.

Configuration

You can change the HSTS header with the following Nextcloud system options (add them to config/config.php)

  • hsts.maxAge (number) expiry time in seconds; default=15768000 (half a year)
  • hsts.includeSubDomains (boolean) apply HSTS rule to all subdomains as well; default=false
  • hsts.preload (boolean) allow adding the domain to the HSTS preload list; default=false
0