2018-05-09 16:13:36 +02:00
|
|
|
location __PATH__ {
|
2017-12-17 16:21:14 +01:00
|
|
|
proxy_redirect http:// https://;
|
2018-05-09 16:13:36 +02:00
|
|
|
proxy_pass http://127.0.0.1:__SEAHUB_PORT__;
|
2017-09-30 15:07:56 +02:00
|
|
|
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;
|
2014-08-13 05:14:22 +02:00
|
|
|
|
2017-09-30 15:07:56 +02:00
|
|
|
# used for view/edit office file via Office Online Server
|
|
|
|
client_max_body_size 0;
|
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/ {
|
2018-05-09 16:13:36 +02:00
|
|
|
proxy_pass http://127.0.0.1:__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;
|
2015-08-29 13:25:04 +02:00
|
|
|
proxy_send_timeout 36000s;
|
2015-08-24 20:45:36 +02:00
|
|
|
}
|
2014-08-12 03:18:09 +02:00
|
|
|
|
|
|
|
|
2018-05-09 16:13:36 +02:00
|
|
|
location __PATH__/media/ {
|
2018-05-10 01:24:20 +02:00
|
|
|
alias __FINALPATH__/seafile-server-latest/seahub/media/;
|
2015-08-24 20:45:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location /seafdav {
|
2021-05-11 21:18:48 +02:00
|
|
|
proxy_pass http://127.0.0.1:__WEBDAV_PORT__/seafdav;
|
|
|
|
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_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_read_timeout 1200s;
|
2015-08-24 20:45:36 +02:00
|
|
|
client_max_body_size 0;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/seafdav.access.log;
|
|
|
|
error_log /var/log/nginx/seafdav.error.log;
|
2019-02-02 10:44:55 +01:00
|
|
|
}
|