Created
January 12, 2015 01:26
-
-
Save klizhentas/f91455363f01277398bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
worker_rlimit_nofile 32000; | |
pid /var/run/nginx.pid; | |
events { | |
use epoll; | |
multi_accept on; | |
} | |
http { | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 300; | |
keepalive_requests 10000; | |
types_hash_max_size 2048; | |
open_file_cache max=200000 inactive=300s; | |
open_file_cache_valid 300s; | |
open_file_cache_min_uses 2; | |
open_file_cache_errors on; | |
server_tokens off; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
access_log /var/log/nginx/access.log combined; | |
error_log /var/log/nginx/error.log warn; | |
gzip off; | |
gzip_vary off; | |
upstream go_http { | |
server put-server-here; | |
keepalive 300; | |
} | |
server { | |
listen 8000 default_server; | |
ssl on; | |
server_name example.com; | |
ssl_certificate example.pem; | |
ssl_certificate_key example.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_session_cache builtin:1000; | |
access_log off; | |
error_log /dev/null crit; | |
location / { | |
proxy_pass http://go_http; | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment