provided an example config file

This commit is contained in:
A.Unger
2020-02-24 14:18:03 +01:00
parent 23f977f28e
commit 42b5399aa3
2 changed files with 28 additions and 23 deletions

View File

@@ -0,0 +1,28 @@
{
"routes": [
{
"endpoint": "/",
"location": "http://localhost:9100"
},
{
"endpoint": "/.well-known/openid-configuration",
"location": "http://localhost:9130"
},
{
"endpoint": "/konnect/",
"location": "http://localhost:9130"
},
{
"endpoint": "/signin/",
"location": "http://localhost:9130"
},
{
"endpoint": "/ocs/v1.php/",
"location": "http://localhost:8080"
},
{
"endpoint": "/remote.php/webdav/",
"location": "http://localhost:8080"
}
]
}

View File

@@ -37,29 +37,6 @@ func Server(cfg *config.Config) *cli.Command {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
// // Default routes
// cfg.Routes = []config.Route{
// {
// Endpoint: "/",
// Location: "http://localhost:9100",
// }, {
// Endpoint: "/.well-known/openid-configuration",
// Location: "http://localhost:9130",
// }, {
// Endpoint: "/konnect/",
// Location: "http://localhost:9130",
// }, {
// Endpoint: "/signin/",
// Location: "http://localhost:9130",
// }, {
// Endpoint: "/ocs/v1.php/",
// Location: "http://localhost:9140",
// }, {
// Endpoint: "/remote.php/webdav/",
// Location: "http://localhost:9140",
// },
// }
return nil
},
Action: func(c *cli.Context) error {