2023-01-22 17:36:58 +01:00
|
|
|
{ config, values, ... }:
|
2021-10-17 11:00:52 +02:00
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2023-01-22 17:36:58 +01:00
|
|
|
enableReload = true;
|
|
|
|
defaultListenAddresses = [
|
2023-05-07 10:20:32 +02:00
|
|
|
values.hosts.bicep.ipv4
|
|
|
|
"[${values.hosts.bicep.ipv6}]"
|
2023-01-22 17:36:58 +01:00
|
|
|
|
|
|
|
"127.0.0.1"
|
|
|
|
"127.0.0.2"
|
|
|
|
"[::1]"
|
|
|
|
];
|
2022-12-07 10:14:39 +01:00
|
|
|
|
2023-09-13 11:01:09 +02:00
|
|
|
appendConfig = ''
|
|
|
|
worker_processes 8;
|
|
|
|
worker_rlimit_nofile 8192;
|
|
|
|
'';
|
|
|
|
|
|
|
|
eventsConfig = ''
|
|
|
|
multi_accept on;
|
|
|
|
worker_connections 4096;
|
|
|
|
'';
|
|
|
|
};
|
2021-10-17 11:00:52 +02:00
|
|
|
}
|