diff --git a/config/.proxy-example.yaml b/config/.proxy-example.yaml new file mode 100644 index 0000000000..5a35023d2c --- /dev/null +++ b/config/.proxy-example.yaml @@ -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" + } + ] +} diff --git a/pkg/command/server.go b/pkg/command/server.go index e0e6013919..deffd3f836 100644 --- a/pkg/command/server.go +++ b/pkg/command/server.go @@ -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 {