-
Notifications
You must be signed in to change notification settings - Fork 7
/
nginx.conf
52 lines (50 loc) · 1.49 KB
/
nginx.conf
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
error_log /dev/stderr;
worker_processes 1;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
include mime.types;
default_type application/octet-stream;
sendfile on;
client_max_body_size 10000M;
client_body_timeout 3600s;
client_header_timeout 3600s;
keepalive_timeout 3600s;
lingering_timeout 3600s;
send_timeout 3600s;
gzip on;
proxy_cache_path /cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=10g;
server {
listen 3128;
location / {
resolver 8.8.8.8;
proxy_pass http://$http_host$uri$is_args$args;
proxy_cache STATIC;
proxy_cache_valid 200 e01 302 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_ignore_headers Cache-Control Expires Set-Cookie Vary;
proxy_hide_header Cache-Control;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 7888;
location / {
root /data;
autoindex on;
autoindex_format json;
client_body_temp_path /tmp;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
create_full_put_path on;
dav_access user:rw group:rw;
#auth_basic "Restricted access";
#auto_basic_user_file auth/webdav;
}
}
}