From e0f8f4d79a7b7938906a550ff81041764772ed4d Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 2 Jan 2021 21:35:21 +0100 Subject: [PATCH] web-2 meows --- hosts/web-2/configuration.nix | 1 + hosts/web-2/meow.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 hosts/web-2/meow.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index de14e38..3e737fe 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -6,6 +6,7 @@ ./hardware-configuration.nix ../../configuration/common ./bubblesort.nix + ./meow.nix ]; boot.loader.grub.enable = true; diff --git a/hosts/web-2/meow.nix b/hosts/web-2/meow.nix new file mode 100644 index 0000000..725581a --- /dev/null +++ b/hosts/web-2/meow.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "meow.clerie.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = ''200 "meow"''; + extraConfig = '' + add_header Content-Type text/plain; + ''; + }; + }; + }; +}