|
|
|
@ -100,6 +100,9 @@ http {
|
|
|
|
|
{% if WEBDAV != 'none' %}
|
|
|
|
|
location /webdav {
|
|
|
|
|
rewrite ^/webdav/(.*) /$1 break;
|
|
|
|
|
auth_request /internal/auth/basic;
|
|
|
|
|
auth_request_set $user $upstream_http_x_user;
|
|
|
|
|
proxy_set_header X-Remote-User $user;
|
|
|
|
|
proxy_pass http://$webdav;
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
@ -108,6 +111,8 @@ http {
|
|
|
|
|
location /internal {
|
|
|
|
|
internal;
|
|
|
|
|
|
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
|
|
|
|
proxy_pass_header Authorization;
|
|
|
|
|
proxy_pass http://$admin;
|
|
|
|
|
proxy_pass_request_body off;
|
|
|
|
|
proxy_set_header Content-Length "";
|
|
|
|
|