diff --git a/changelog/unreleased/client-urls.md b/changelog/unreleased/client-urls.md new file mode 100644 index 0000000..47e74ce --- /dev/null +++ b/changelog/unreleased/client-urls.md @@ -0,0 +1,5 @@ +Enhancement: Proxy client urls in default configuration + +Proxy /status.php and index.php/* + +https://github.com/owncloud/ocis-proxy/issues/19 diff --git a/config/proxy-example.json b/config/proxy-example.json index be74c6f..1d101bd 100644 --- a/config/proxy-example.json +++ b/config/proxy-example.json @@ -37,6 +37,14 @@ { "endpoint": "/webdav/", "backend": "http://localhost:9140" + }, + { + "endpoint": "/status.php", + "backend": "http://localhost:9140" + }, + { + "endpoint": "/index.php/", + "backend": "http://localhost:9140" } ] }, @@ -78,6 +86,14 @@ "endpoint": "/webdav/", "backend": "https://demo.owncloud.com", "apache-vhost": true + }, + { + "endpoint": "/status.php", + "backend": "https://demo.owncloud.com" + }, + { + "endpoint": "/index.php/", + "backend": "https://demo.owncloud.com" } ] } diff --git a/pkg/proxy/proxy.go b/pkg/proxy/proxy.go index e8528a9..b644820 100644 --- a/pkg/proxy/proxy.go +++ b/pkg/proxy/proxy.go @@ -166,6 +166,14 @@ func defaultPolicies() []config.Policy { Endpoint: "/webdav/", Backend: "http://localhost:9140", }, + config.Route{ + Endpoint: "/status.php", + Backend: "http://localhost:9140", + }, + config.Route{ + Endpoint: "/index.php/", + Backend: "http://localhost:9140", + }, }, }, config.Policy{ @@ -207,6 +215,16 @@ func defaultPolicies() []config.Policy { Backend: "https://demo.owncloud.com", ApacheVHost: true, }, + config.Route{ + Endpoint: "/status.php", + Backend: "https://demo.owncloud.com", + ApacheVHost: true, + }, + config.Route{ + Endpoint: "/index.php/", + Backend: "https://demo.owncloud.com", + ApacheVHost: true, + }, }, }, }