adjust seafhttp proxy
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
log_format seafileformat '$http_x_forwarded_for $remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_response_time';
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
location /seafile {
|
||||
@@ -8,6 +10,15 @@ server {
|
||||
rewrite ^/seafhttp(.*)$ $1 break;
|
||||
proxy_pass http://host:8082;
|
||||
client_max_body_size 0;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_connect_timeout 36000s;
|
||||
proxy_read_timeout 36000s;
|
||||
proxy_send_timeout 36000s;
|
||||
send_timeout 36000s;
|
||||
|
||||
access_log /var/log/nginx/seafhttp.access.log seafileformat;
|
||||
error_log /var/log/nginx/seafhttp.error.log;
|
||||
}
|
||||
location /seafmedia {
|
||||
rewrite ^/seafmedia(.*)$ $1 break;
|
||||
|
||||
Reference in New Issue
Block a user