diff --git a/.codacy.yml b/.codacy.yml index 3e80750..3e47010 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -3,6 +3,7 @@ exclude_paths: - CHANGELOG.md - changelog/** - docs/** + - config/** - pkg/proto/** - '**_test.go' - .codacy.yml diff --git a/config/proxy-example-migration.json b/config/proxy-example-migration.json index efeb71b..42885cc 100644 --- a/config/proxy-example-migration.json +++ b/config/proxy-example-migration.json @@ -58,6 +58,10 @@ { "endpoint": "/index.php/", "backend": "http://localhost:9140" + }, + { + "endpoint": "/data", + "backend": "http://localhost:9140" } ] }, @@ -107,6 +111,11 @@ { "endpoint": "/index.php/", "backend": "https://demo.owncloud.com" + }, + { + "endpoint": "/data", + "backend": "https://demo.owncloud.com", + "apache-vhost": true } ] } diff --git a/config/proxy-example.json b/config/proxy-example.json index 21e0a8c..6878e67 100644 --- a/config/proxy-example.json +++ b/config/proxy-example.json @@ -54,6 +54,10 @@ { "endpoint": "/index.php/", "backend": "http://localhost:9140" + }, + { + "endpoint": "/data", + "backend": "http://localhost:9140" } ] }, @@ -103,6 +107,11 @@ { "endpoint": "/index.php/", "backend": "https://demo.owncloud.com" + }, + { + "endpoint": "/data", + "backend": "https://demo.owncloud.com", + "apache-vhost": true } ] } diff --git a/pkg/proxy/proxy.go b/pkg/proxy/proxy.go index ff5ab8b..5d1340b 100644 --- a/pkg/proxy/proxy.go +++ b/pkg/proxy/proxy.go @@ -261,6 +261,10 @@ func defaultPolicies() []config.Policy { Endpoint: "/index.php/", Backend: "http://localhost:9140", }, + { + Endpoint: "/data", + Backend: "http://localhost:9140", + }, }, }, { @@ -312,6 +316,11 @@ func defaultPolicies() []config.Policy { Backend: "https://demo.owncloud.com", ApacheVHost: true, }, + { + Endpoint: "/data", + Backend: "https://demo.owncloud.com", + ApacheVHost: true, + }, }, }, }