Skip to content

Commit

Permalink
Add sandkasten config
Browse files Browse the repository at this point in the history
  • Loading branch information
Defelo committed Dec 16, 2023
1 parent 2eb660f commit 9946b82
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions hosts/sandkasten/sandkasten.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,41 @@
settings = {
host = "0.0.0.0";
port = 8000;

enable_metrics = true;

program_ttl = 300;
prune_programs_interval = 60;

max_concurrent_jobs = 8;

base_resource_usage_runs = 20;
base_resource_usage_permits = 2;

compile_limits = {
cpus = 1;
time = 30; # seconds
memory = 1024; # mb
tmpfs = 256; # mb
filesize = 16; # mb
file_descriptors = 256;
processes = 256;
stdout_max_size = 65536;
stderr_max_size = 65536;
network = false;
};
run_limits = {
cpus = 1;
time = 5; # seconds
memory = 512; # mb
tmpfs = 256; # mb
filesize = 16; # mb
file_descriptors = 256;
processes = 64;
stdout_max_size = 65536;
stderr_max_size = 65536;
network = false;
};
};
};
}

0 comments on commit 9946b82

Please sign in to comment.