Matus Fabian | 8792e5c | 2024-08-14 12:38:20 +0200 | [diff] [blame^] | 1 | master_process on; |
| 2 | worker_rlimit_nofile 10240; |
| 3 | worker_processes 2; |
| 4 | daemon off; |
| 5 | |
| 6 | error_log /tmp/nginx/{{.LogPrefix}}-error.log info; |
| 7 | |
| 8 | events { |
| 9 | use epoll; |
| 10 | worker_connections 10240; |
| 11 | accept_mutex off; |
| 12 | multi_accept off; |
| 13 | } |
| 14 | |
| 15 | http { |
| 16 | keepalive_timeout 300s; |
| 17 | keepalive_requests 1000000; |
| 18 | sendfile on; |
| 19 | server { |
| 20 | access_log /tmp/nginx/{{.LogPrefix}}-access.log; |
| 21 | listen {{.Port}}; |
| 22 | server_name {{.Address}}; |
| 23 | root /usr/share/nginx; |
| 24 | index index.html index.htm; |
| 25 | location /64B { |
| 26 | return 200 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; |
| 27 | } |
| 28 | location / { |
| 29 | sendfile on; |
| 30 | } |
| 31 | } |
| 32 | } |