Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ type SubscriberConfigurations struct {
}

func GetEndpoint(host string) (string, error) {
const apiPath = "/api/query"
const apiPath = "/query"
// returns endpoint from env, if provided by user
if utils.Config.ChaosCenterUiEndpoint != "" {
return strings.TrimRight(utils.Config.ChaosCenterUiEndpoint, "/") + apiPath, nil
if utils.Config.ChaosGraphQLEndpoint != "" {
return strings.TrimRight(utils.Config.ChaosGraphQLEndpoint, "/") + apiPath, nil
}

return strings.TrimRight(host, "/") + apiPath, nil
Expand Down
1 change: 1 addition & 0 deletions chaoscenter/graphql/server/utils/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Configuration struct {
ContainerRuntimeExecutor string `required:"true" split_words:"true"`
WorkflowHelperImageVersion string `required:"true" split_words:"true"`
ChaosCenterUiEndpoint string `split_words:"true" default:"https://localhost:8080"`
ChaosGraphQLEndpoint string `split_words:"true" default:"http://chaos-litmus-server-service:9002"`
TlsCertB64 string `split_words:"true"`
LitmusAuthGrpcEndpoint string `split_words:"true" default:"localhost"`
LitmusAuthGrpcPort string `split_words:"true" default:"3030"`
Expand Down
Loading