Skip to content

Commit

Permalink
fix(config): add required clients to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Jan 7, 2025
1 parent 741dabf commit 3a4c9ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"serviceNamePrefix": "io.restorecommerce.",
"serviceConfigPrefix": "io-restorecommerce-",
"resources": {
"default-catalog-srv": [
"catalog-srv": [
"manufacturer",
"price_group",
"product_category",
Expand All @@ -80,8 +80,11 @@
}
},
"client": {
"default-catalog-srv": {
"address": "localhost:50068"
"acs-srv": {
"address": "localhost:50061"
},
"user": {
"address": "localhost:50051"
}
},
"redis": {
Expand Down
7 changes: 5 additions & 2 deletions cfg/config_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
}
},
"client": {
"default-catalog-srv": {
"address": "0.0.0.0:50051"
"acs-srv": {
"address": "access-control-srv:50051"
},
"user": {
"address": "identity-srv:50051"
}
},
"server": {
Expand Down
2 changes: 1 addition & 1 deletion cfg/config_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"client": {
"default-catalog-srv": {
"catalog-srv": {
"address": "localhost:50068"
},
"acs-srv": {
Expand Down
2 changes: 1 addition & 1 deletion test/catalog_srv.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const getClientResourceServices = async () => {
mapClients: new Map()
};
const resources = cfg.get('resources');
const defaultConfig = cfg.get('client:default-catalog-srv');
const defaultConfig = cfg.get('client:catalog-srv');
for (let resourceType in resources) {
const resourceCfg = resources[resourceType];
const serviceNamePrefix = resourceCfg.serviceNamePrefix;
Expand Down

0 comments on commit 3a4c9ad

Please sign in to comment.