summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/reaktor2.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-09-28 23:22:59 +0200
committermakefu <github@syntax-fehler.de>2023-09-28 23:22:59 +0200
commit2db6777b7caa37477c5ffddd99d69b2f2c6d9d7f (patch)
treea72905fad73089b7ab295a948eda837bad013362 /krebs/2configs/reaktor2.nix
parent29d72c898d674d2c18fc0f4a76b5e623de0c3dfe (diff)
parent0215fbddccf206801d94f52518cbfec91ccc3cc5 (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/2configs/reaktor2.nix')
-rw-r--r--krebs/2configs/reaktor2.nix18
1 files changed, 18 insertions, 0 deletions
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 = {