Source

fastdev-django / deploy / nginx.conf.tpl

Full commit
server {
	listen 80;
	server_name ${buildout:domain};
	location /s/ {
		root ${buildout:directory}/${buildout:project}/static/;
		expires 30d;
		access_log off;
		rewrite ^/s/(.*) /\$1 break;
	}

	location / {
		include uwsgi_params;
		uwsgi_pass ${uwsgi:connection};
		root ${buildout:directory};
	}

	charset utf-8;
	access_log /var/log/nginx/${buildout:sitename}-access.log;
	error_log /var/log/nginx/${buildout:sitename}-error.log;
	client_max_body_size 300m;
}