diff options
author | tv <tv@krebsco.de> | 2023-09-27 11:27:26 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-09-27 11:27:26 +0200 |
commit | acdf326c225ccace51e9b5f7fd1e1fdf51b2a6e1 (patch) | |
tree | 29b3b7f80c44ff80d9b878ed91f2110eca0e60b2 /krebs | |
parent | 579c68e876e3a2134bff91b1d949930b15f12a4c (diff) | |
parent | 0215fbddccf206801d94f52518cbfec91ccc3cc5 (diff) |
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/2configs/reaktor2.nix | 18 |
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 = { |