mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix seafdav config
This commit is contained in:
parent
17b9e3137f
commit
b95a3b0497
2 changed files with 15 additions and 31 deletions
|
@ -30,21 +30,13 @@ location __PATH__/media/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /seafdav {
|
location /seafdav {
|
||||||
fastcgi_pass 127.0.0.1:__WEBDAV_PORT__;
|
proxy_pass http://127.0.0.1:__WEBDAV_PORT__/seafdav;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
proxy_set_header Host $host;
|
||||||
fastcgi_param PATH_INFO $fastcgi_script_name;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
fastcgi_param QUERY_STRING $query_string;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
fastcgi_param REQUEST_METHOD $request_method;
|
proxy_read_timeout 1200s;
|
||||||
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;
|
client_max_body_size 0;
|
||||||
|
|
||||||
access_log /var/log/nginx/seafdav.access.log;
|
access_log /var/log/nginx/seafdav.access.log;
|
||||||
|
|
|
@ -1,21 +1,13 @@
|
||||||
location /seafdav {
|
location /seafdav {
|
||||||
fastcgi_pass 127.0.0.1:WEBDAV_PORT;
|
proxy_pass http://127.0.0.1:__WEBDAV_PORT__/seafdav;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
proxy_set_header Host $host;
|
||||||
fastcgi_param PATH_INFO $fastcgi_script_name;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
fastcgi_param QUERY_STRING $query_string;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
fastcgi_param REQUEST_METHOD $request_method;
|
proxy_read_timeout 1200s;
|
||||||
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;
|
client_max_body_size 0;
|
||||||
|
|
||||||
access_log /var/log/nginx/seafdav.access.log;
|
access_log /var/log/nginx/seafdav.access.log;
|
||||||
error_log /var/log/nginx/seafdav.error.log;
|
error_log /var/log/nginx/seafdav.error.log;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue