hotdog.r: add bedge.r

This commit is contained in:
lassulus 2023-09-26 20:51:50 +02:00
parent 0ea93f6de7
commit 200102c607
2 changed files with 19 additions and 0 deletions

View File

@ -77,6 +77,7 @@ in {
aliases = [ aliases = [
"hotdog.r" "hotdog.r"
"agenda.r" "agenda.r"
"bedge.r"
"kri.r" "kri.r"
"build.r" "build.r"
"build.hotdog.r" "build.hotdog.r"

View File

@ -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-r.serviceConfig.DynamicUser = mkForce false;
systemd.services.reaktor2-hackint.serviceConfig.DynamicUser = mkForce false; systemd.services.reaktor2-hackint.serviceConfig.DynamicUser = mkForce false;
krebs.reaktor2 = { krebs.reaktor2 = {