seafile_ynh/conf/nginx.conf

53 lines
1.9 KiB
Nginx Configuration File
Raw Normal View History

2017-04-14 15:13:44 +02:00
location PATHTOCHANGE1 {
2017-12-17 16:21:14 +01:00
proxy_redirect http:// https://;
2017-09-30 15:07:56 +02:00
proxy_pass http://127.0.0.1:SEAHUB_PORT;
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 HTTP_AUTH_USER $remote_user;
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:SEAFILE_FILESERVER_PORT/;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
}
2017-04-14 15:13:44 +02:00
location PATHTOCHANGE2media {
alias ALIASTOCHANGEseafile-server-latest/seahub/media;
}
location /seafdav {
fastcgi_pass 127.0.0.1:WEBDAV_PORT;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
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;
fastcgi_param HTTPS on;
client_max_body_size 0;
access_log /var/log/nginx/seafdav.access.log;
error_log /var/log/nginx/seafdav.error.log;
}