linux/conf/nginx/sites-available/seafile

26 lines
501 B
Plaintext
Raw Permalink Normal View History

2015-10-03 13:11:09 +02:00
server {
server_name seafile.example.com;
2016-01-25 17:45:35 +01:00
listen 443 ssl;
2015-10-03 13:11:09 +02:00
access_log /data/log/nginx/seafile-access.log;
error_log /data/log/nginx/seafile-error.log;
2015-10-03 13:11:09 +02:00
location / {
proxy_pass http://localhost:8000;
include proxy_params;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
2016-02-01 18:32:45 +01:00
proxy_pass http://localhost:8082;
2015-10-03 13:11:09 +02:00
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
}
location /media {
root /data/seafile/app/seafile-server-latest/seahub;
}
}