Samesite - proxy that can cache partial transfers

Artifact [2a30458003]
anonymous

Artifact [2a30458003]

Artifact 2a304580032b9e32e339d2504b55c188f0d0410402cbad416d8fc982bc43fbec:


# sample nginx config to serve the local site

server {
	listen *:80;
	listen [fec0::1]:80;
	server_name site.to.hijack;
	access_log /var/log/nginx/site_name.access.log;
	error_log /var/log/nginx/site_name.error.log debug;
	expires -1;
	try_files $uri @break;
	error_page 404 = @break;
	log_not_found off;
	# autoindex on;

	location / {
		if ($request_method != HEAD) {
			root /path/to/www/site_name/;
		}
	}

	location @break {
		# pointing out where our server listens
		proxy_pass http://localhost:8008;
		# saying that we downloading from real site
		proxy_set_header Host real.site.name;
		proxy_read_timeout 600;
	}
}