From 4fda5770406432bcb983ef8e8dab2f0642c00017 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 3 Oct 2022 22:39:35 +0100 Subject: [PATCH] nixos/middleman: Add default nginx pages --- .../shill/containers/middleman/default.html | 24 +++++++++++++++++++ .../vms/shill/containers/middleman/vhosts.nix | 16 ++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 nixos/boxes/colony/vms/shill/containers/middleman/default.html diff --git a/nixos/boxes/colony/vms/shill/containers/middleman/default.html b/nixos/boxes/colony/vms/shill/containers/middleman/default.html new file mode 100644 index 0000000..2223069 --- /dev/null +++ b/nixos/boxes/colony/vms/shill/containers/middleman/default.html @@ -0,0 +1,24 @@ + + + + Welcome to /dev/player0-land! + + + + +

Welcome to nginx /dev/player0-land!

+

If you see this page, the nginx web server is successfully installed and + working I haven't built a proper website yet. Further configuration is required.

+ +

For online documentation and support please refer to + github.com/devplayer0.
+ Commercial support is available at + j@ckos.ie.

+ +

Thank you for using nginx visiting.

+ + diff --git a/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix b/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix index 915333e..4df02c6 100644 --- a/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix +++ b/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix @@ -59,7 +59,21 @@ in forceSSL = true; onlySSL = false; locations = mkMerge [ - { } + { + "/".root = pkgs.linkFarm "nginx-root" [ + { + name = "index.html"; + path = ./default.html; + } + { + name = "cv.pdf"; + path = builtins.fetchurl { + url = "https://github.com/devplayer0/cvos/releases/download/v0.1.3/bootable.pdf"; + sha256 = "018wh6ps19n7323fi44njzj9yd4wqslc90dykbwfyscv7bgxhlar"; + }; + } + ]; + } wellKnown ]; useACMEHost = lib.my.pubDomain;