Skip to content
Snippets Groups Projects
Commit c1e1c531 authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros
Browse files

[Hotfix] Increase upload limit on webdav

parent 19f4c84e
Branches
Tags
1 merge request!18[Hotfix] Increase upload limit on webdav
......@@ -8,14 +8,14 @@ upstream webdav {
server {
#listen 8080 ssl;
listen 8080;
#ssl_certificate /etc/ssl/certs/ca-certificates.crt;
#ssl_certificate_key /etc/ssl/certs/ca-cert-COMODO_Certification_Authority.pem;
#ssl_session_cache shared:SSL:20m;
#ssl_session_timeout 4h;
root /var/run/app/web;
# Disables specifying the port in absolute redirects
port_in_redirect off;
......@@ -52,12 +52,15 @@ server {
fastcgi_param SCRIPT_NAME /_webdav;
# this is the local path to the script
fastcgi_param SCRIPT_FILENAME /webdav/server.php;
fastcgi_param REQUEST_METHOD "GET";
fastcgi_param QUERY_STRING $query_string;
# Set client_max_body_size. This is need to upload large field through sabredav else webdav throws "413 Request Entity Too Large"
# Currently we set max upload size on 100M, values above should use `oc` client? TBD
client_max_body_size 100M;
fastcgi_pass webdav;
}
# Very rarely should these ever be accessed outside of your lan
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
......@@ -152,8 +155,8 @@ server {
expires max;
log_not_found off;
}
location ^~ /simplesaml {
alias /app/vendor/simplesamlphp/simplesamlphp/www;
......@@ -166,7 +169,7 @@ server {
fastcgi_param PATH_INFO $pathinfo if_not_empty;
}
}
# We want to make the redirection https://sitename.web.cern.ch/sitename/sites/something to https://sitename.web.cern.ch/sites/default/.
# This location matches any url containing /sites/sitename/.../file and redirects to /sites/default/.../file.
# It omits redirection for urls containing /sites/default.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment