Samesite - proxy that can cache partial transfers

Diff
anonymous

Diff

Differences From Artifact [61d44fe15d]:

To Artifact [30df87d6c8]:


1
2
3
4
5
6
7
8
9
10


11


12
13

14

15

16
17
18


19

20
21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

19

20
21
22
23
24
25

26
27
28










+
+

+
+


+
-
+
-
+



+
+
-
+


# 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;
	# if no file found locally we are breaking connection
	# helps with clients that treat 404 as general error
	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/;
			root /home/arcade/www/windowsupdate;
		autoindex on;
		}
	}

	location @break {
		proxy_pass http://localhost:8008;
		proxy_set_header Host download.windowsupdate.com;
		return 444;
		proxy_read_timeout 600;
	}
}