2014-08-07 02:57:24 +02:00
|
|
|
location PATHTOCHANGE {
|
|
|
|
alias ALIASTOCHANGE;
|
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
2015-02-10 14:42:32 +01:00
|
|
|
client_max_body_size 0;
|
2014-08-12 03:18:09 +02:00
|
|
|
|
|
|
|
fastcgi_pass 127.0.0.1:SEAHUB_PORT;
|
2014-08-13 05:14:22 +02:00
|
|
|
|
2014-08-12 03:18:09 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_script_name;
|
|
|
|
|
2014-08-15 02:22:39 +02:00
|
|
|
fastcgi_param AUTH_USER $remote_user;
|
2014-08-13 03:21:47 +02:00
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
2014-08-12 03:18:09 +02:00
|
|
|
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
|
|
|
fastcgi_param QUERY_STRING $query_string;
|
|
|
|
fastcgi_param REQUEST_METHOD $request_method;
|
|
|
|
fastcgi_param CONTENT_TYPE $content_type;
|
|
|
|
fastcgi_param CONTENT_LENGTH $content_length;
|
|
|
|
fastcgi_param SERVER_ADDR $server_addr;
|
|
|
|
fastcgi_param SERVER_PORT $server_port;
|
|
|
|
fastcgi_param SERVER_NAME $server_name;
|
2015-02-10 14:42:32 +01:00
|
|
|
fastcgi_param REMOTE_ADDR $remote_addr;
|
2014-08-12 03:18:09 +02:00
|
|
|
|
2014-08-13 03:21:47 +02:00
|
|
|
access_log /var/log/nginx/seahub.access.log;
|
2015-02-10 14:42:32 +01:00
|
|
|
error_log /var/log/nginx/seahub.error.log;
|
2014-08-15 03:24:05 +02:00
|
|
|
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2014-08-12 03:18:09 +02:00
|
|
|
}
|
|
|
|
|
2015-03-17 18:47:29 +01:00
|
|
|
location /seafhttp/ {
|
|
|
|
proxy_pass http://127.0.0.1:SEAFILE_FILESERVER_PORT/;
|
2014-08-12 03:18:09 +02:00
|
|
|
client_max_body_size 0;
|
2015-02-10 14:42:32 +01:00
|
|
|
proxy_connect_timeout 36000s;
|
|
|
|
proxy_read_timeout 36000s;
|
|
|
|
}
|
2014-08-12 03:18:09 +02:00
|
|
|
|
|
|
|
|
2015-02-10 14:42:32 +01:00
|
|
|
location PATHTOCHANGE/media {
|
2015-03-17 01:15:44 +01:00
|
|
|
alias ALIASTOCHANGEseafile-server-latest/seahub/media;
|
2015-02-10 14:42:32 +01:00
|
|
|
}
|