Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

70 lines (58 sloc) 1.75 kb
user ruiwen;
worker_processes 1;
error_log /home/ruiwen/Projects/CampBoard/log/error.log;
#pid /var/run/;
pid /home/ruiwen/Projects/CampBoard/bin/;
events {
worker_connections 1024;
use epoll;
http {
# Enumerate all the Tornado servers here
upstream frontends {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /home/ruiwen/Projects/CampBoard/log/access.log;
keepalive_timeout 65;
proxy_read_timeout 200;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/html text/css text/xml
application/x-javascript application/xml
application/atom+xml text/javascript;
# Only retry if there was a communication error, not a timeout
# on the Tornado server (to avoid propagating "queries of death"
# to all frontends)
proxy_next_upstream error;
server {
listen 8080;
# Allow file uploads
client_max_body_size 50M;
location ^~ /media/ {
root /home/ruiwen/Projects/CampBoard/;
if ($query_string) {
expires max;
location = /favicon.ico {
rewrite (.*) /static/favicon.ico;
location = /robots.txt {
rewrite (.*) /static/robots.txt;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://frontends;
Jump to Line
Something went wrong with that request. Please try again.