l websites: add default.nix for 404

This commit is contained in:
lassulus 2017-08-01 20:47:34 +02:00
parent 95aef46c56
commit 8c9e0ad35d
4 changed files with 29 additions and 0 deletions

View File

@ -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;
'';
};
};
}

View File

@ -23,6 +23,7 @@ let
in {
imports = [
./default.nix
./sqlBackup.nix
(servePage [ "reich-gebaeudereinigung.de" "www.reich-gebaeudereinigung.de" ])
(servePage [

View File

@ -26,6 +26,7 @@ in {
services.nginx.enable = true;
imports = [
./default.nix
./sqlBackup.nix
(serveWordpress [ "radical-dreamers.de" "www.radical-dreamers.de" ])

View File

@ -8,6 +8,7 @@ let
in {
imports = [
./default.nix
../git.nix
];