summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/news.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-12 22:21:32 +0100
committerlassulus <lassulus@lassul.us>2021-01-12 22:21:32 +0100
commit98becc8ff6a3eab2fd407475f7848df08acdd7fc (patch)
tree49c14f84ccb2ef073cf0eeb8e0ea20398d063e8a /krebs/2configs/news.nix
parentb906bf0b02b727c583bead47d745d7ece96ea804 (diff)
news: serve state at http://brockman.r
Diffstat (limited to 'krebs/2configs/news.nix')
-rw-r--r--krebs/2configs/news.nix20
1 files changed, 16 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 = {