seafile_ynh/conf/nginx.conf

45 lines
1.5 KiB
Nginx Configuration File
Raw Permalink Normal View History

location __PATH__ {
2017-12-17 16:21:14 +01:00
proxy_redirect http:// https://;
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;
2017-09-30 15:07:56 +02:00
# used for view/edit office file via Office Online Server
client_max_body_size 0;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
include conf.d/yunohost_panel.conf.inc;
}
location /seafhttp/ {
proxy_pass http://127.0.0.1:__FILESERVER_PORT__/;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
}
location __PATH__/media/ {
2018-05-10 01:24:20 +02:00
alias __FINALPATH__/seafile-server-latest/seahub/media/;
}
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;
client_max_body_size 0;
access_log /var/log/nginx/seafdav.access.log;
error_log /var/log/nginx/seafdav.error.log;
}