diff options
author | makefu <github@syntax-fehler.de> | 2017-08-05 12:01:07 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-08-05 12:01:07 +0200 |
commit | f1124bd208306b2cfe32e1b85ccb810455453483 (patch) | |
tree | b286db06b459e2d24409c3b4fd02eb0ea7d88a82 /lass/2configs/websites/default.nix | |
parent | 7db5d59018f4096b0cc39afa59df53b6a1fa9353 (diff) | |
parent | 1310375624b7fbcb6c165a032edc9d3ef336d57b (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/websites/default.nix')
-rw-r--r-- | lass/2configs/websites/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lass/2configs/websites/default.nix b/lass/2configs/websites/default.nix new file mode 100644 index 000000000..1ffa105a7 --- /dev/null +++ b/lass/2configs/websites/default.nix @@ -0,0 +1,26 @@ +{ config, lib, ... }: + +with import <stockholm/lib>; + +{ + services.nginx = { + recommendedGzipSettings = true; + recommendedOptimisation = true; + recommendedTlsSettings = true; + + virtualHosts._http = { + default = true; + extraConfig = '' + return 404; + ''; + }; + + virtualHosts.default = { + locations."= /etc/os-release".extraConfig = '' + default_type text/plain; + alias /etc/os-release; + ''; + }; + }; +} + |