nixpkgs-suyu/nixos
Daniel KT 4590a2380e nixos/nextcloud: add Strict-Transport-Security
This commit adds a Strict-Transport-Security header to
the nginx config file generated by the nextcloud module.

The Strict-Transport-Security header is recommended in
official guide for hardening Nextcloud installations:
https://docs.nextcloud.com/server/16/admin_manual/installation/harden_server.html

Further, if it is not set, we see a warning in the security scan results
in the Nextcloud admin panel:

```
The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips

```
2019-09-25 16:56:53 -04:00
..
doc Merge pull request #67232 from ck3d/container-useHostResolvConf 2019-09-25 09:34:17 +00:00
lib nixos/lib/utils: Make the set recursive again, unbreak eval 2019-09-08 13:31:18 +02:00
maintainers amazon-image.nix: upload prebuilt images 2019-09-05 00:52:21 +09:00
modules nixos/nextcloud: add Strict-Transport-Security 2019-09-25 16:56:53 -04:00
tests Merge pull request #67232 from ck3d/container-useHostResolvConf 2019-09-25 09:34:17 +00:00
COPYING
default.nix
README
release-combined.nix nixos.tests.fontconfig-default-fonts: init 2019-09-01 00:09:25 -04:00
release-small.nix release-small.nix: Don't depend on currentSystem 2019-06-19 14:07:37 +02:00
release.nix nixos/release: add gnome3 closure 2019-09-17 17:48:40 -04:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.