-
Notifications
You must be signed in to change notification settings - Fork 2
/
fly.nix
47 lines (47 loc) · 904 Bytes
/
fly.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
let
base = {
kill_signal = "SIGINT";
kill_timeout = 5;
processes = [ ];
services = [
{
internal_port = 8080;
processes = [ "app" ];
protocol = "tcp";
concurrency = {
hard_limit = 25;
soft_limit = 20;
type = "connections";
};
ports = [
{
handlers = [ "http" ];
port = 80;
}
{
handlers = [ "tls" "http" ];
port = 443;
}
];
http_checks = [
{
grace_period = "1s";
interval = "15s";
timeout = "2s";
path = "/";
method = "get";
protocol = "http";
}
];
}
];
};
in
{
production = base // {
app = "nix-fly-template";
};
staging = base // {
app = "nix-fly-template-staging";
};
}