Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Proxy client urls in default configuration #19
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Mar 20, 2020
1 parent 5888e10 commit e55635a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/client-urls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Proxy client urls in default configuration

https://github.com/owncloud/ocis-proxy/issues/19
16 changes: 16 additions & 0 deletions config/proxy-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
{
"endpoint": "/webdav/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/status.php",
"backend": "http://localhost:9140"
},
{
"endpoint": "/index.php/",
"backend": "http://localhost:9140"
}
]
},
Expand Down Expand Up @@ -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"
}
]
}
Expand Down
18 changes: 18 additions & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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,
},
},
},
}
Expand Down

0 comments on commit e55635a

Please sign in to comment.