diff options
author | makefu <github@syntax-fehler.de> | 2021-04-20 09:01:54 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-04-20 09:01:54 +0200 |
commit | 610a81d723a8a6593ccb1adf7f87eef145953771 (patch) | |
tree | 13739e02a1b73671bf6cbaad125ab4620eee63c1 /krebs/2configs/news.nix | |
parent | bba59bcf1115a14d913b5dff30fe6df0bc395233 (diff) | |
parent | 6b12f7ec6ab25eb482c73d9c3e1b892b0531ff6d (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/2configs/news.nix')
-rw-r--r-- | krebs/2configs/news.nix | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/krebs/2configs/news.nix b/krebs/2configs/news.nix index 410beb041..2da3e6fcc 100644 --- a/krebs/2configs/news.nix +++ b/krebs/2configs/news.nix @@ -15,6 +15,16 @@ serverAliases = [ "news.r" ]; + locations."/api".extraConfig = '' + proxy_pass http://127.0.0.1:7777/; + proxy_pass_header Server; + ''; + locations."= /graph.html".extraConfig = '' + alias ${pkgs.fetchurl { + url = "https://raw.githubusercontent.com/kmein/brockman/05d33c8caaaf6255752f9600981974bb58390851/tools/graph.html"; + sha256 = "0iw2vdzj6kzkix1c447ybmc953lns6z4ap6sr9pcib8bany4g43w"; + }}; + ''; locations."/".extraConfig = '' root /var/lib/brockman; index brockman.json; @@ -27,6 +37,7 @@ }; systemd.tmpfiles.rules = [ "d /var/lib/brockman 1750 brockman nginx -" + "d /run/irc-api 1750 brockman nginx -" ]; systemd.services.brockman-graph = { @@ -67,12 +78,28 @@ shortener = "http://go.r"; controller = { nick = "brockman"; - channels = [ "#all" ]; + extraChannels = [ "#all" ]; }; bots = {}; }; }; + krebs.reaktor2.api = { + hostname = "localhost"; + port = "6667"; + nick = "api"; + API.listen = "inet://127.0.0.1:7777"; + plugins = [ + { + plugin = "register"; + config = { + channels = [ + "#all" + ]; + }; + } + ]; + }; krebs.reaktor2.news = let name = "candyman"; in { |