bicep/nginx: increase workers and enable modern compression

Should decrease latency
This commit is contained in:
Daniel Lovbrotte Olsen 2023-09-13 11:01:09 +02:00
parent 06322a26fc
commit 816997b74f
1 changed files with 16 additions and 0 deletions

View File

@ -19,11 +19,27 @@
"[::1]" "[::1]"
]; ];
appendConfig = ''
pcre_jit on;
worker_processes 8;
worker_rlimit_nofile 8192;
'';
eventsConfig = ''
multi_accept on;
worker_connections 4096;
'';
recommendedProxySettings = true; recommendedProxySettings = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedBrotliSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
}; };
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
systemd.services.nginx.serviceConfig = {
LimitNOFILE = 65536;
};
} }