Skip to content

Instantly share code, notes, and snippets.

@kylewm
Created September 9, 2014 05:20
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 kylewm/08210dda7abc4caaaaf9 to your computer and use it in GitHub Desktop.
Save kylewm/08210dda7abc4caaaaf9 to your computer and use it in GitHub Desktop.
nginx server config, uwsgi_cache attempt
uwsgi_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m;
server {
listen 443 ssl;
server_name kylewm.com;
access_log /srv/www/kylewm.com/logs/access.log;
error_log /srv/www/kylewm.com/logs/error.log warn;
root /srv/www/kylewm.com/public_html;
client_max_body_size 10M;
location / { try_files $uri @groomsman; }
location @groomsman {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_cache one;
uwsgi_cache_key $uri;
uwsgi_cache_valid any 5m;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment