There was an error while loading. Please reload this page.
1 parent 37794e2 commit 02e91adCopy full SHA for 02e91ad
nixops.nix
@@ -6,6 +6,7 @@ let
6
durationSeconds = (import ./global.nix).durationSeconds;
7
region = "us-east-2";
8
accessKeyId = builtins.getEnv "PGRSTBENCH_AWS_PROFILE";
9
+ maxFileDescriptors = 500000;
10
env = {
11
withNginx = builtins.getEnv "PGRSTBENCH_WITH_NGINX" == "true";
12
withUnixSocket = builtins.getEnv "PGRSTBENCH_WITH_UNIX_SOCKET" == "true";
@@ -168,6 +169,7 @@ in {
168
169
serviceConfig = {
170
ExecStart = "${postgrest}/bin/postgrest ${pgrstConf}";
171
Restart = "always";
172
+ LimitNOFILE = maxFileDescriptors;
173
};
174
175
nginx =
@@ -246,6 +248,7 @@ in {
246
248
UMask = "0027"; # 0640 / 0750
247
249
# Security
250
NoNewPrivileges = true;
251
252
253
254
0 commit comments