Skip to content

Instantly share code, notes, and snippets.

@jennyq
Last active December 29, 2015 23:19
Show Gist options
  • Save jennyq/7742140 to your computer and use it in GitHub Desktop.
Save jennyq/7742140 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name localhost;
charset utf-8;
keepalive_timeout 65;
client_max_body_size 30M;
root /var/www/tendenci/;
location /static/ {
access_log off;
expires 30d;
}
location /media/ {
access_log off;
expires 30d;
}
location ~ /themes/([a-zA-Z0-9\-\_]+)/media/ {
access_log off;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8000/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment