summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-26 20:51:50 +0200
committerlassulus <git@lassul.us>2023-09-26 20:51:50 +0200
commit200102c60759f101db8f6419667e85961ffa79b6 (patch)
tree0c3b043ca1e2b21e03b853de9fe2748c084a24c0
parent0ea93f6de78169f73cfea8935fb5173904ac8c8e (diff)
hotdog.r: add bedge.r
-rw-r--r--kartei/krebs/default.nix1
-rw-r--r--krebs/2configs/reaktor2.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/kartei/krebs/default.nix b/kartei/krebs/default.nix
index bbf6a74f8..6c5c86ead 100644
--- a/kartei/krebs/default.nix
+++ b/kartei/krebs/default.nix
@@ -77,6 +77,7 @@ in {
aliases = [
"hotdog.r"
"agenda.r"
+ "bedge.r"
"kri.r"
"build.r"
"build.hotdog.r"
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix
index bc5bfc0fb..db7b794f4 100644
--- a/krebs/2configs/reaktor2.nix
+++ b/krebs/2configs/reaktor2.nix
@@ -528,6 +528,24 @@ in {
'';
};
+ services.nginx.virtualHosts."bedge.r" = {
+ locations."/".extraConfig = ''
+ proxy_set_header Host $host;
+ proxy_pass http://localhost:${toString config.services.hledger-web.port};
+ '';
+ locations."/bedger.json".extraConfig = ''
+ proxy_set_header Host $host;
+ proxy_pass http://localhost:8011;
+ '';
+ extraConfig = ''
+ add_header 'Access-Control-Allow-Origin' '*';
+ add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+ '';
+ };
+ services.hledger-web = {
+ enable = true;
+ };
+
systemd.services.reaktor2-r.serviceConfig.DynamicUser = mkForce false;
systemd.services.reaktor2-hackint.serviceConfig.DynamicUser = mkForce false;
krebs.reaktor2 = {