summaryrefslogtreecommitdiffstats
path: root/lass/2configs/websites/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-08-01 20:47:34 +0200
committerlassulus <lassulus@lassul.us>2017-08-01 20:48:17 +0200
commit8c9e0ad35d330e980a59c57b89715c21971c1819 (patch)
tree17336846c584d87a0dff16abddf47d51f766df43 /lass/2configs/websites/default.nix
parent95aef46c56564ce82e3f0e864cc0508e310a0825 (diff)
l websites: add default.nix for 404
Diffstat (limited to 'lass/2configs/websites/default.nix')
-rw-r--r--lass/2configs/websites/default.nix26
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;
+ '';
+ };
+ };
+}
+