From 06db871bd75a714a61434dd4b13bc87e1319ba92 Mon Sep 17 00:00:00 2001 From: sterni Date: Sun, 31 Dec 2023 00:19:22 +0100 Subject: chore(sterni/machines): move http services from edwin to ingeborg * Make sterni.lv declarative * Disable gopher server * Disable likely-music.sterni.lv for now * Don't give systemd too much leeway with scheduling git syncs Change-Id: Ie8507d96f2df76ad8e393b2181ed7378c37829d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10480 Autosubmit: sterni Reviewed-by: sterni Tested-by: BuildkiteCI --- users/sterni/machines/ingeborg/http/sterni.lv.nix | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 users/sterni/machines/ingeborg/http/sterni.lv.nix (limited to 'users/sterni/machines/ingeborg/http/sterni.lv.nix') diff --git a/users/sterni/machines/ingeborg/http/sterni.lv.nix b/users/sterni/machines/ingeborg/http/sterni.lv.nix new file mode 100644 index 000000000000..50c1bac293e2 --- /dev/null +++ b/users/sterni/machines/ingeborg/http/sterni.lv.nix @@ -0,0 +1,34 @@ +{ pkgs, depot, ... }: + +let + inherit (depot.users.sterni.nix.html) + __findFile + withDoctype + ; +in + +{ + imports = [ + ./nginx.nix + ]; + + config = { + services.nginx.virtualHosts."sterni.lv" = { + enableACME = true; + forceSSL = true; + root = pkgs.writeTextFile { + name = "sterni.lv-http-root"; + destination = "/index.html"; + text = withDoctype ( { } [ + ( { } [ + ( { charset = "utf-8"; } null) + ( { } "no thoughts") + ]) + (<body> { } "🦩") + ]); + }; + # TODO(sterni): tmp.sterni.lv + locations."/tmp/".root = toString /srv/http; + }; + }; +} -- cgit 1.4.1