Samesite - proxy that can cache partial transfers

nginx.conf at [30e9655020]
anonymous

nginx.conf at [30e9655020]

File nginx.conf artifact 344dc36668 part of check-in 30e9655020


# sample nginx config to serve the local site

map $request_method:$is_args $hijack_root {
	GET: /home/arcade/www;

	default /var/empty;
}

server {
	listen *:80;
	listen [fec0::1]:80;
	server_name ^(?<domain>.+).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 / {
		root $hijack_root/$domain;
	}

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