diff options
author | lassulus <lassulus@lassul.us> | 2021-01-12 22:21:32 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-01-12 22:21:32 +0100 |
commit | 98becc8ff6a3eab2fd407475f7848df08acdd7fc (patch) | |
tree | 49c14f84ccb2ef073cf0eeb8e0ea20398d063e8a | |
parent | b906bf0b02b727c583bead47d745d7ece96ea804 (diff) |
news: serve state at http://brockman.r
-rw-r--r-- | krebs/2configs/news.nix | 20 | ||||
-rw-r--r-- | krebs/3modules/krebs/default.nix | 1 |
2 files changed, 17 insertions, 4 deletions
diff --git a/krebs/2configs/news.nix b/krebs/2configs/news.nix index 446aaf459..f40997f82 100644 --- a/krebs/2configs/news.nix +++ b/krebs/2configs/news.nix @@ -5,12 +5,24 @@ enable = true; whitelist = [ "*" ]; }; - services.nginx.virtualHosts.rss-bridge = { - serverAliases = [ - "rss.r" - ]; + services.nginx.virtualHosts = { + rss-bridge = { + serverAliases = [ + "rss.r" + ]; + }; + "brockman.r" = { + locations."/".extraConfig = '' + root /var/lib/brockman; + index brockman.json; + ''; + }; }; + systemd.tmpfiles.rules = [ + "d /var/lib/brockman 1750 brockman nginx -" + ]; + systemd.services.brockman.environment.BROCKMAN_LOG_LEVEL = "DEBUG"; krebs.brockman = { enable = true; config = { diff --git a/krebs/3modules/krebs/default.nix b/krebs/3modules/krebs/default.nix index 3e3e1381f..d0648418f 100644 --- a/krebs/3modules/krebs/default.nix +++ b/krebs/3modules/krebs/default.nix @@ -128,6 +128,7 @@ in { ip4.addr = "10.243.77.2"; aliases = [ "puyak.r" + "brockman.r" "build.puyak.r" "cgit.puyak.r" "go.r" |