aboutsummarylogtreecommitdiffstats
path: root/nginx.conf
blob: a0daaa8763cc869495a753c195b2d1a2e0d7620a (plain)
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
29
30
31
32
33
34
35
server {
	listen 80;
	listen [::]:80;

	access_log off;

	server_name https://pipedproxy-cdg.kavin.rocks;

	proxy_buffering on;
	proxy_buffers 1024 16k;
	proxy_set_header X-Forwarded-For "";
	proxy_set_header CF-Connecting-IP "";
	proxy_hide_header "alt-svc";
	sendfile on;
	sendfile_max_chunk 512k;
	tcp_nopush on;
	aio threads=default;
	aio_write on;
	directio 16m;
	proxy_hide_header Cache-Control;
	proxy_hide_header etag;
	proxy_http_version 1.1;
	proxy_set_header Connection keep-alive;
	proxy_max_temp_file_size 32m;

	location ~ (/videoplayback|/api/v4/|/api/manifest/) {
		proxy_pass http://unix:/var/run/piped/proxy.sock;
		add_header Cache-Control private always;
	}

	location / {
		proxy_pass http://unix:/var/run/piped/proxy.sock;
		add_header Cache-Control "public, max-age=604800";
	}
}