feat: introduce ofborg pastebin service
The web service is not available yet. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
aeb2129099
commit
b18499918c
2 changed files with 11 additions and 0 deletions
|
@ -39,6 +39,8 @@
|
|||
postgres.enable = true;
|
||||
ofborg = {
|
||||
rabbitmq.enable = true;
|
||||
mass-rebuilder.enable = true;
|
||||
pastebin.enable = true;
|
||||
builder.enable = true;
|
||||
stats.enable = true;
|
||||
};
|
||||
|
|
|
@ -26,6 +26,7 @@ in {
|
|||
options.bagel.services.ofborg = with lib; {
|
||||
rabbitmq.enable = mkEnableOption "ofborg AMQP queue";
|
||||
builder.enable = mkEnableOption "ofborg builder worker";
|
||||
pastebin.enable = mkEnableOption "ofborg pastebin service";
|
||||
stats.enable = mkEnableOption "ofborg prometheus worker";
|
||||
|
||||
package = mkPackageOption pkgs "ofborg" { };
|
||||
|
@ -65,6 +66,11 @@ in {
|
|||
build_timeout_seconds = 3600;
|
||||
initial_heap_size = "4g";
|
||||
};
|
||||
|
||||
pastebin = {
|
||||
root = "$STATE_DIRECTORY/pastebins";
|
||||
db = "$STATE_DIRECTORY/db.json";
|
||||
};
|
||||
};
|
||||
}
|
||||
(mkIf cfg.rabbitmq.enable {
|
||||
|
@ -89,6 +95,9 @@ in {
|
|||
|
||||
networking.firewall.allowedTCPPorts = [ amqpPort ];
|
||||
})
|
||||
(mkIf cfg.pastebin.enable {
|
||||
systemd.services.ofborg-pastebin = mkOfborgWorker "pastebin-worker" { };
|
||||
})
|
||||
(mkIf cfg.builder.enable {
|
||||
systemd.services.ofborg-builder = mkOfborgWorker "builder" { };
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue