mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-06-20 13:59:21 -04:00
provided an example config file
This commit is contained in:
28
config/.proxy-example.yaml
Normal file
28
config/.proxy-example.yaml
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user