Skip to content

Commit

Permalink
minor nginx fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gregatsoon committed Nov 28, 2016
1 parent 2152773 commit f961931
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#

worker_processes 1;
daemon off;

events {
worker_connections 1024;
Expand All @@ -22,11 +23,15 @@ http {
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;

# tmp path

client_body_temp_path /tmp 1 2;

# Buffers

client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 10m;
client_max_body_size 8m;
large_client_header_buffers 2 1k;

# Timeouts
Expand All @@ -45,12 +50,18 @@ http {
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain application/x-javascript text/xml text/css application/xml application/json;

# DDoS Protection Settings

limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=50r/s;

# thisissoon with prerender.io

server {
listen 80;
server_name thisissoon.com thisissoon.soon.build;

listen 80;

root /thisissoon;

location ~ ^/(media|static) {
Expand Down

0 comments on commit f961931

Please sign in to comment.