Move webdav nginx fixes into app endpoint
Not sure if this will now still work with oauth proxy though.
This commit is contained in:
@@ -38,13 +38,6 @@ server {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
# http://serverfault.com/questions/121766/webdav-rename-fails-on-an-apache-mod-dav-install-behind-nginx
|
||||
set $destination $http_destination;
|
||||
if ($destination ~* ^https(.+)$) {
|
||||
set $destination http$1;
|
||||
}
|
||||
proxy_set_header Destination $destination;
|
||||
|
||||
# only serve up the status page if we get proxy gateway errors
|
||||
error_page 502 503 504 @appstatus;
|
||||
location @appstatus {
|
||||
@@ -87,6 +80,14 @@ server {
|
||||
proxy_pass http://127.0.0.1:3003;
|
||||
proxy_set_header X-Cloudron-Proxy-Port <%= port %>;
|
||||
<% } else if ( endpoint === 'app' ) { %>
|
||||
|
||||
# http://serverfault.com/questions/121766/webdav-rename-fails-on-an-apache-mod-dav-install-behind-nginx
|
||||
set $destination $http_destination;
|
||||
if ($destination ~* ^https(.+)$) {
|
||||
set $destination http$1;
|
||||
}
|
||||
proxy_set_header Destination $destination;
|
||||
|
||||
proxy_pass http://127.0.0.1:<%= port %>;
|
||||
<% } else if ( endpoint === 'splash' ) { %>
|
||||
root <%= sourceDir %>;
|
||||
|
||||
Reference in New Issue
Block a user