linux/conf/nginx/sites-available/seafile
Adrian c58105e816 Update Nginx config
* Make only Let's Encrypt path available on port 80
* Protect WordPress admin URLs
* Seperate logs for hosts
* Update example PHP config
* Update README
2016-03-17 01:52:10 +01:00

25 lines
501 B
Text

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;
}
}