Skip to content

Commit 97b5d28

Browse files
author
Gerald Baulig
committed
chore(config): upgrade configs
1 parent 556f60b commit 97b5d28

File tree

3 files changed

+170
-128
lines changed

3 files changed

+170
-128
lines changed

cfg/config.json

+16-101
Original file line numberDiff line numberDiff line change
@@ -27,123 +27,38 @@
2727
}
2828
},
2929
"redis": {
30-
"host": "localhost",
31-
"port": 6379,
32-
"offsetStoreInterval": 1000
30+
"url": "redis://localhost:6379",
31+
"offsetStoreInterval": 1000,
32+
"db-indexes": {
33+
"db-offsetStore": 0,
34+
"db-subject": 4,
35+
"db-orderStore": 9
36+
}
3337
},
3438
"client": {
35-
"fulfillment": {
36-
"address": "localhost:50065"
37-
},
38-
"fulfillment_courier": {
39-
"address": "localhost:50065"
40-
},
41-
"fulfillment_product": {
42-
"address": "localhost:50065"
43-
},
4439
"customer": {
45-
"address": "localhost:50066",
46-
"mock": {
47-
"protoPath": "io/restorecommerce/customer.proto",
48-
"packageName": "io.restorecommerce.customer",
49-
"serviceName": "CustomerService",
50-
"protoLoadOptions": {
51-
"includeDirs": [
52-
"node_modules/@restorecommerce/protos/"
53-
]
54-
}
55-
}
40+
"address": "localhost:50063"
5641
},
5742
"shop": {
58-
"address": "localhost:50067",
59-
"mock": {
60-
"protoPath": "io/restorecommerce/shop.proto",
61-
"packageName": "io.restorecommerce.shop",
62-
"serviceName": "ShopService",
63-
"protoLoadOptions": {
64-
"includeDirs": [
65-
"node_modules/@restorecommerce/protos/"
66-
]
67-
}
68-
}
43+
"address": "localhost:50063"
6944
},
7045
"organization": {
71-
"address": "localhost:50068",
72-
"mock": {
73-
"protoPath": "io/restorecommerce/organization.proto",
74-
"packageName": "io.restorecommerce.organization",
75-
"serviceName": "OrganizationService",
76-
"protoLoadOptions": {
77-
"includeDirs": [
78-
"node_modules/@restorecommerce/protos/"
79-
]
80-
}
81-
}
46+
"address": "localhost:50063"
8247
},
8348
"contact_point": {
84-
"address": "localhost:50069",
85-
"mock": {
86-
"protoPath": "io/restorecommerce/contact_point.proto",
87-
"packageName": "io.restorecommerce.contact_point",
88-
"serviceName": "ContactPointService",
89-
"protoLoadOptions": {
90-
"includeDirs": [
91-
"node_modules/@restorecommerce/protos/"
92-
]
93-
}
94-
}
49+
"address": "localhost:50063"
9550
},
9651
"address": {
97-
"address": "localhost:50070",
98-
"mock": {
99-
"protoPath": "io/restorecommerce/address.proto",
100-
"packageName": "io.restorecommerce.address",
101-
"serviceName": "AddressService",
102-
"protoLoadOptions": {
103-
"includeDirs": [
104-
"node_modules/@restorecommerce/protos/"
105-
]
106-
}
107-
}
52+
"address": "localhost:50063"
10853
},
10954
"country": {
110-
"address": "localhost:50071",
111-
"mock": {
112-
"protoPath": "io/restorecommerce/country.proto",
113-
"packageName": "io.restorecommerce.country",
114-
"serviceName": "CountryService",
115-
"protoLoadOptions": {
116-
"includeDirs": [
117-
"node_modules/@restorecommerce/protos/"
118-
]
119-
}
120-
}
55+
"address": "localhost:50063"
12156
},
12257
"tax": {
123-
"address": "localhost:50072",
124-
"mock": {
125-
"protoPath": "io/restorecommerce/tax.proto",
126-
"packageName": "io.restorecommerce.tax",
127-
"serviceName": "TaxService",
128-
"protoLoadOptions": {
129-
"includeDirs": [
130-
"node_modules/@restorecommerce/protos/"
131-
]
132-
}
133-
}
58+
"address": "localhost:50063"
13459
},
13560
"product": {
136-
"address": "localhost:50073",
137-
"mock": {
138-
"protoPath": "io/restorecommerce/product.proto",
139-
"packageName": "io.restorecommerce.product",
140-
"serviceName": "ProductService",
141-
"protoLoadOptions": {
142-
"includeDirs": [
143-
"node_modules/@restorecommerce/protos/"
144-
]
145-
}
146-
}
61+
"address": "localhost:50068"
14762
}
14863
},
14964
"events": {
@@ -334,7 +249,7 @@
334249
{
335250
"name": "grpcFulfillmentSrv",
336251
"provider": "grpc",
337-
"addr": "0.0.0.0:50065"
252+
"addr": "0.0.0.0:50067"
338253
}
339254
]
340255
},

cfg/config_production.json

+39-27
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,60 @@
99
"source": "fulfillment-srv"
1010
}
1111
},
12+
"redis": {
13+
"url": "redis://redis:6379"
14+
},
1215
"database": {
1316
"main": {
14-
"host": "arangodb"
17+
"provider": "arango",
18+
"host": "arangodb",
19+
"port": 8529,
20+
"database": "fulfillment-srv",
21+
"autoCreate": true
1522
}
1623
},
17-
"redis": {
18-
"host": "redis"
24+
"client": {
25+
"customer": {
26+
"address": "localhost:50051"
27+
},
28+
"shop": {
29+
"address": "localhost:50051"
30+
},
31+
"organization": {
32+
"address": "localhost:50051"
33+
},
34+
"contact_point": {
35+
"address": "localhost:50051"
36+
},
37+
"address": {
38+
"address": "localhost:50051"
39+
},
40+
"country": {
41+
"address": "localhost:50051"
42+
},
43+
"tax": {
44+
"address": "localhost:50051"
45+
},
46+
"product": {
47+
"address": "localhost:50051"
48+
}
1949
},
2050
"events": {
2151
"kafka": {
22-
"kafkaHost": "kafka:9092"
52+
"kafka": {
53+
"brokers": [
54+
"kafka:9092"
55+
]
56+
}
2357
}
2458
},
2559
"server": {
2660
"transports": [
2761
{
28-
"name": "grpcFulfillmentSrv",
62+
"name": "grpcFulfillment",
2963
"provider": "grpc",
30-
"services": {
31-
"io-restorecommerce-fulfillment-srv": "io.restorecommerce.fulfillment.Service",
32-
"io-restorecommerce-fulfillment_courier-srv": "io.restorecommerce.fulfillment_courier.Service",
33-
"io-restorecommerce-fulfillment-reflection": "grpc.reflection.v1alpha.ServerReflection",
34-
"io-restorecommerce-fulfillment-cis": "io.restorecommerce.commandinterface.Service",
35-
"grpc-health-v1": "grpc.health.v1.Health"
36-
},
37-
"protos": [
38-
"io/restorecommerce/address.proto",
39-
"io/restorecommerce/fulfillment.proto",
40-
"io/restorecommerce/fulfillment_courier.proto",
41-
"grpc/reflection/v1alpha/reflection.proto",
42-
"io/restorecommerce/commandinterface.proto",
43-
"grpc/health/v1/health.proto"
44-
],
45-
"protoRoot": "node_modules/@restorecommerce/protos/",
4664
"addr": "0.0.0.0:50051"
4765
}
4866
]
49-
},
50-
"wadlurl": {
51-
"url": "https://cig.dhl.de/services/production/rest/sendungsverfolgung?xml="
52-
},
53-
"endPoint": {
54-
"url": "https://cig.dhl.de/services/production/soap"
5567
}
5668
}

cfg/config_test.json

+115
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,120 @@
66
"colorize": true,
77
"prettyPrint": true
88
}
9+
},
10+
"client": {
11+
"fulfillment": {
12+
"address": "localhost:50067"
13+
},
14+
"fulfillment_courier": {
15+
"address": "localhost:50067"
16+
},
17+
"fulfillment_product": {
18+
"address": "localhost:50067"
19+
},
20+
"customer": {
21+
"address": "localhost:50063",
22+
"mock": {
23+
"protoPath": "io/restorecommerce/customer.proto",
24+
"packageName": "io.restorecommerce.customer",
25+
"serviceName": "CustomerService",
26+
"protoLoadOptions": {
27+
"includeDirs": [
28+
"node_modules/@restorecommerce/protos/"
29+
]
30+
}
31+
}
32+
},
33+
"shop": {
34+
"address": "localhost:50063",
35+
"mock": {
36+
"protoPath": "io/restorecommerce/shop.proto",
37+
"packageName": "io.restorecommerce.shop",
38+
"serviceName": "ShopService",
39+
"protoLoadOptions": {
40+
"includeDirs": [
41+
"node_modules/@restorecommerce/protos/"
42+
]
43+
}
44+
}
45+
},
46+
"organization": {
47+
"address": "localhost:50063",
48+
"mock": {
49+
"protoPath": "io/restorecommerce/organization.proto",
50+
"packageName": "io.restorecommerce.organization",
51+
"serviceName": "OrganizationService",
52+
"protoLoadOptions": {
53+
"includeDirs": [
54+
"node_modules/@restorecommerce/protos/"
55+
]
56+
}
57+
}
58+
},
59+
"contact_point": {
60+
"address": "localhost:50063",
61+
"mock": {
62+
"protoPath": "io/restorecommerce/contact_point.proto",
63+
"packageName": "io.restorecommerce.contact_point",
64+
"serviceName": "ContactPointService",
65+
"protoLoadOptions": {
66+
"includeDirs": [
67+
"node_modules/@restorecommerce/protos/"
68+
]
69+
}
70+
}
71+
},
72+
"address": {
73+
"address": "localhost:50063",
74+
"mock": {
75+
"protoPath": "io/restorecommerce/address.proto",
76+
"packageName": "io.restorecommerce.address",
77+
"serviceName": "AddressService",
78+
"protoLoadOptions": {
79+
"includeDirs": [
80+
"node_modules/@restorecommerce/protos/"
81+
]
82+
}
83+
}
84+
},
85+
"country": {
86+
"address": "localhost:50063",
87+
"mock": {
88+
"protoPath": "io/restorecommerce/country.proto",
89+
"packageName": "io.restorecommerce.country",
90+
"serviceName": "CountryService",
91+
"protoLoadOptions": {
92+
"includeDirs": [
93+
"node_modules/@restorecommerce/protos/"
94+
]
95+
}
96+
}
97+
},
98+
"tax": {
99+
"address": "localhost:50063",
100+
"mock": {
101+
"protoPath": "io/restorecommerce/tax.proto",
102+
"packageName": "io.restorecommerce.tax",
103+
"serviceName": "TaxService",
104+
"protoLoadOptions": {
105+
"includeDirs": [
106+
"node_modules/@restorecommerce/protos/"
107+
]
108+
}
109+
}
110+
},
111+
"product": {
112+
"address": "localhost:50068",
113+
"mock": {
114+
"protoPath": "io/restorecommerce/product.proto",
115+
"packageName": "io.restorecommerce.product",
116+
"serviceName": "ProductService",
117+
"protoLoadOptions": {
118+
"includeDirs": [
119+
"node_modules/@restorecommerce/protos/"
120+
]
121+
}
122+
}
123+
}
9124
}
10125
}

0 commit comments

Comments
 (0)