hotdog.r: add bedge.r
This commit is contained in:
parent
0ea93f6de7
commit
200102c607
@ -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"
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user