server { server_name seafile.example.com; listen 443 ssl; access_log /data/log/nginx/seafile-access.log; error_log /data/log/nginx/seafile-error.log; location / { proxy_pass http://localhost:8000; include proxy_params; } location /seafhttp { rewrite ^/seafhttp(.*)$ $1 break; proxy_pass http://localhost:8082; client_max_body_size 0; proxy_connect_timeout 36000s; proxy_read_timeout 36000s; } location /media { root /data/seafile/app/seafile-server-latest/seahub; } }