Last active
August 29, 2015 14:03
-
-
Save nzajt/a4c7b9feaf26595fde76 to your computer and use it in GitHub Desktop.
nginx.conf for osx
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
worker_processes 4; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
} | |
http { | |
default_type application/octet-stream; | |
include /usr/local/etc/nginx/mime.types; | |
map $scheme $fastcgi_https { ## Detect when HTTPS is used | |
default off; | |
https on; | |
} | |
## | |
# Logging Settings | |
## | |
access_log /usr/local/var/log/nginx/access.log; | |
error_log /usr/local/var/log/nginx/error.log; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
client_header_timeout 10m; | |
client_body_timeout 10m; | |
client_body_temp_path /tmp/nginx/; | |
send_timeout 10m; | |
proxy_read_timeout 2m; | |
fastcgi_read_timeout 3m; | |
client_header_buffer_size 1k; | |
large_client_header_buffers 4 4k; | |
output_buffers 1 32k; | |
postpone_output 1460; | |
keepalive_timeout 60 15; | |
types_hash_max_size 2048; | |
## | |
# Gzip Settings | |
## | |
gzip on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
upstream fpm_backend { | |
server 127.0.0.1:9000; | |
} | |
include /usr/local/etc/nginx/conf.d/*.conf; | |
include /usr/local/etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment