# SPDX-License-Identifier: Apache-2.0 # Minimal nginx config for the ASan test suite. Exercises the code paths # most likely to surface memory errors: shared-zone init/reload, the # scrape renderer (under slab mutex), the log-phase handler's interning, # and logtail UDP buffering. load_module /opt/nginx-asan/modules/ngx_http_ipng_stats_module.so; daemon off; master_process on; worker_processes 2; pid /tmp/nginx.pid; error_log /tmp/nginx.err info; events { worker_connections 128; } http { access_log off; ipng_stats_zone ipng:1m; ipng_stats_flush_interval 300ms; ipng_stats_default_source direct; log_format logtail '$remote_addr\t$request_method\t$request_uri\t$status'; ipng_stats_logtail logtail udp://127.0.0.1:9514 buffer=4k flush=300ms; server { # Mgmt scrape endpoint. listen 172.20.41.2:9113; location = /stats { ipng_stats; allow all; } } server { # Data plane — client traffic lands here. listen 10.0.1.1:8080 device=eth1 ipng_source_tag=cl1; listen 172.20.41.2:8080; location / { return 200 "ok $server_addr\n"; } location /notfound { return 404 "nope\n"; } } }