2020-06-01 09:35:56 +00:00
|
|
|
client_max_body_size 0;
|
|
|
|
|
|
|
|
location / {
|
2021-02-17 09:56:18 +00:00
|
|
|
proxy_pass http://127.0.0.1:8000;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
|
|
proxy_read_timeout 1200s;
|
2020-06-01 09:35:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /seafhttp {
|
|
|
|
rewrite ^/seafhttp(.*)$ $1 break;
|
|
|
|
proxy_pass http://127.0.0.1:8082;
|
|
|
|
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;
|
|
|
|
proxy_request_buffering off;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /media {
|
|
|
|
alias /opt/seafile/seafile-server-latest/seahub/media;
|
|
|
|
}
|