Skip to content

Instantly share code, notes, and snippets.

@kazuho
Created February 4, 2016 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuho/def1e71281ed4ae07b95 to your computer and use it in GitHub Desktop.
Save kazuho/def1e71281ed4ae07b95 to your computer and use it in GitHub Desktop.
worker_processes 1;
error_log stderr;
events {
worker_connections 1024;
}
http {
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
keepalive_requests 1000000;
access_log off;
server {
listen 8078;
location / {
root /path/to/doc_root;
}
}
server {
listen 8079 ssl http2;
ssl on;
ssl_certificate /path/to/server.crt;
ssl_certificate_key /path/to/server.key;
location / {
/path/to/doc_root;
}
}
open_file_cache max=100000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment