fix service names for userlog, graph, invitations, sse and web

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-05-13 17:04:01 +02:00
parent f74dfaad2d
commit 799b12b8dd
8 changed files with 12 additions and 12 deletions
@@ -28,7 +28,7 @@ func DefaultConfig() *config.Config {
},
HTTP: config.HTTP{
Addr: "127.0.0.1:9120",
Namespace: "com.owncloud.graph",
Namespace: "com.owncloud.web",
Root: "/graph",
CORS: config.CORS{
AllowedOrigins: []string{"*"},
+2 -2
View File
@@ -35,7 +35,7 @@ func Server(opts ...Option) (http.Service, error) {
http.TLSConfig(options.Config.HTTP.TLS),
http.Logger(options.Logger),
http.Namespace(options.Config.HTTP.Namespace),
http.Name("graph"),
http.Name(options.Config.Service.Name),
http.Version(version.GetString()),
http.Address(options.Config.HTTP.Addr),
http.Context(options.Context),
@@ -66,7 +66,7 @@ func Server(opts ...Option) (http.Service, error) {
middleware.TraceContext,
chimiddleware.RequestID,
middleware.Version(
"graph",
options.Config.Service.Name,
version.GetString(),
),
middleware.Logger(
@@ -24,7 +24,7 @@ func DefaultConfig() *config.Config {
HTTP: config.HTTP{
Addr: "127.0.0.1:0", // :0 to pick any free local port
Root: "/graph/v1.0",
Namespace: "com.owncloud.graph",
Namespace: "com.owncloud.web",
CORS: config.CORS{
AllowedOrigins: []string{"https://localhost:9200"},
},
@@ -142,7 +142,7 @@ func DefaultPolicies() []config.Policy {
{
// reroute oc10 notifications endpoint to userlog service
Endpoint: "/ocs/v2.php/apps/notifications/api/v1/notifications",
Service: "com.owncloud.userlog.userlog",
Service: "com.owncloud.web.userlog",
},
{
Type: config.RegexRoute,
@@ -238,11 +238,11 @@ func DefaultPolicies() []config.Policy {
},
{
Endpoint: "/graph/v1.0/invitations",
Service: "com.owncloud.graph.invitations",
Service: "com.owncloud.web.invitations",
},
{
Endpoint: "/graph/",
Service: "com.owncloud.graph.graph",
Service: "com.owncloud.web.graph",
},
{
Endpoint: "/api/v0/settings",
+1 -1
View File
@@ -47,7 +47,7 @@ func Server(opts ...Option) (http.Service, error) {
middlewares := []func(stdhttp.Handler) stdhttp.Handler{
chimiddleware.RequestID,
middleware.Version(
"userlog",
options.Config.Service.Name,
version.GetString(),
),
middleware.Logger(
@@ -44,7 +44,7 @@ func DefaultConfig() *config.Config {
HTTP: config.HTTP{
Addr: "127.0.0.1:0",
Root: "/",
Namespace: "com.owncloud.userlog",
Namespace: "com.owncloud.web",
CORS: config.CORS{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET"},
+2 -2
View File
@@ -29,7 +29,7 @@ func Server(opts ...Option) (http.Service, error) {
http.TLSConfig(options.Config.HTTP.TLS),
http.Logger(options.Logger),
http.Namespace(options.Config.HTTP.Namespace),
http.Name("userlog"),
http.Name(options.Config.Service.Name),
http.Version(version.GetString()),
http.Address(options.Config.HTTP.Addr),
http.Context(options.Context),
@@ -46,7 +46,7 @@ func Server(opts ...Option) (http.Service, error) {
middlewares := []func(stdhttp.Handler) stdhttp.Handler{
chimiddleware.RequestID,
middleware.Version(
"userlog",
options.Config.Service.Name,
version.GetString(),
),
middleware.Logger(
+1 -1
View File
@@ -86,7 +86,7 @@ func Server(opts ...Option) (http.Service, error) {
middleware.NoCache,
webmid.SilentRefresh,
middleware.Version(
"web",
options.Config.Service.Name,
version.GetString(),
),
middleware.Logger(