Skip to content

Instantly share code, notes, and snippets.

@apenney
Created May 13, 2015 15:08
Show Gist options
  • Save apenney/dd9142bf28ac6b4b8e75 to your computer and use it in GitHub Desktop.
Save apenney/dd9142bf28ac6b4b8e75 to your computer and use it in GitHub Desktop.
worker_processes 16;
worker_rlimit_nofile 30000;
pid /run/nginx.pid;
events {
worker_connections 15000;
multi_accept on;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
#log_format custom '$request_body';
#access_log /home/apenney/mopub/access custom;
error_log /home/apenney/mopub/error;
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
#keepalive_timeout 1200;
keepalive_requests 500000;
keepalive_timeout 60;
#limit_req zone=one burst=5 nodelay;
#gzip on;
index index.html index.htm;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
#log_format postdata '$request_body';
#client_body_buffer_size 2048k;
server {
listen 172.31.30.250:7070 default_server;
server_name test.ntoggle.com;
root /usr/share/nginx/html;
#location /mopub {
# echo_request_body;
# access_log /home/apenney/mopub/requests.log postdata;
# proxy_pass http://158.85.254.53/nothing;
#}
location = /mopub {
# turn off logging here to avoid double logging
access_log off;
#more_clear_headers 'Content-Length';
more_set_headers 'Content-Length: 0';
#echo_sleep 0.050;
return 204;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment