Skip to content

Commit

Permalink
chore(config): upgrade configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Nov 28, 2023
1 parent 556f60b commit 97b5d28
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 128 deletions.
117 changes: 16 additions & 101 deletions cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,123 +27,38 @@
}
},
"redis": {
"host": "localhost",
"port": 6379,
"offsetStoreInterval": 1000
"url": "redis://localhost:6379",
"offsetStoreInterval": 1000,
"db-indexes": {
"db-offsetStore": 0,
"db-subject": 4,
"db-orderStore": 9
}
},
"client": {
"fulfillment": {
"address": "localhost:50065"
},
"fulfillment_courier": {
"address": "localhost:50065"
},
"fulfillment_product": {
"address": "localhost:50065"
},
"customer": {
"address": "localhost:50066",
"mock": {
"protoPath": "io/restorecommerce/customer.proto",
"packageName": "io.restorecommerce.customer",
"serviceName": "CustomerService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"shop": {
"address": "localhost:50067",
"mock": {
"protoPath": "io/restorecommerce/shop.proto",
"packageName": "io.restorecommerce.shop",
"serviceName": "ShopService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"organization": {
"address": "localhost:50068",
"mock": {
"protoPath": "io/restorecommerce/organization.proto",
"packageName": "io.restorecommerce.organization",
"serviceName": "OrganizationService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"contact_point": {
"address": "localhost:50069",
"mock": {
"protoPath": "io/restorecommerce/contact_point.proto",
"packageName": "io.restorecommerce.contact_point",
"serviceName": "ContactPointService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"address": {
"address": "localhost:50070",
"mock": {
"protoPath": "io/restorecommerce/address.proto",
"packageName": "io.restorecommerce.address",
"serviceName": "AddressService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"country": {
"address": "localhost:50071",
"mock": {
"protoPath": "io/restorecommerce/country.proto",
"packageName": "io.restorecommerce.country",
"serviceName": "CountryService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"tax": {
"address": "localhost:50072",
"mock": {
"protoPath": "io/restorecommerce/tax.proto",
"packageName": "io.restorecommerce.tax",
"serviceName": "TaxService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50063"
},
"product": {
"address": "localhost:50073",
"mock": {
"protoPath": "io/restorecommerce/product.proto",
"packageName": "io.restorecommerce.product",
"serviceName": "ProductService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
"address": "localhost:50068"
}
},
"events": {
Expand Down Expand Up @@ -334,7 +249,7 @@
{
"name": "grpcFulfillmentSrv",
"provider": "grpc",
"addr": "0.0.0.0:50065"
"addr": "0.0.0.0:50067"
}
]
},
Expand Down
66 changes: 39 additions & 27 deletions cfg/config_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,60 @@
"source": "fulfillment-srv"
}
},
"redis": {
"url": "redis://redis:6379"
},
"database": {
"main": {
"host": "arangodb"
"provider": "arango",
"host": "arangodb",
"port": 8529,
"database": "fulfillment-srv",
"autoCreate": true
}
},
"redis": {
"host": "redis"
"client": {
"customer": {
"address": "localhost:50051"
},
"shop": {
"address": "localhost:50051"
},
"organization": {
"address": "localhost:50051"
},
"contact_point": {
"address": "localhost:50051"
},
"address": {
"address": "localhost:50051"
},
"country": {
"address": "localhost:50051"
},
"tax": {
"address": "localhost:50051"
},
"product": {
"address": "localhost:50051"
}
},
"events": {
"kafka": {
"kafkaHost": "kafka:9092"
"kafka": {
"brokers": [
"kafka:9092"
]
}
}
},
"server": {
"transports": [
{
"name": "grpcFulfillmentSrv",
"name": "grpcFulfillment",
"provider": "grpc",
"services": {
"io-restorecommerce-fulfillment-srv": "io.restorecommerce.fulfillment.Service",
"io-restorecommerce-fulfillment_courier-srv": "io.restorecommerce.fulfillment_courier.Service",
"io-restorecommerce-fulfillment-reflection": "grpc.reflection.v1alpha.ServerReflection",
"io-restorecommerce-fulfillment-cis": "io.restorecommerce.commandinterface.Service",
"grpc-health-v1": "grpc.health.v1.Health"
},
"protos": [
"io/restorecommerce/address.proto",
"io/restorecommerce/fulfillment.proto",
"io/restorecommerce/fulfillment_courier.proto",
"grpc/reflection/v1alpha/reflection.proto",
"io/restorecommerce/commandinterface.proto",
"grpc/health/v1/health.proto"
],
"protoRoot": "node_modules/@restorecommerce/protos/",
"addr": "0.0.0.0:50051"
}
]
},
"wadlurl": {
"url": "https://cig.dhl.de/services/production/rest/sendungsverfolgung?xml="
},
"endPoint": {
"url": "https://cig.dhl.de/services/production/soap"
}
}
115 changes: 115 additions & 0 deletions cfg/config_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,120 @@
"colorize": true,
"prettyPrint": true
}
},
"client": {
"fulfillment": {
"address": "localhost:50067"
},
"fulfillment_courier": {
"address": "localhost:50067"
},
"fulfillment_product": {
"address": "localhost:50067"
},
"customer": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/customer.proto",
"packageName": "io.restorecommerce.customer",
"serviceName": "CustomerService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"shop": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/shop.proto",
"packageName": "io.restorecommerce.shop",
"serviceName": "ShopService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"organization": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/organization.proto",
"packageName": "io.restorecommerce.organization",
"serviceName": "OrganizationService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"contact_point": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/contact_point.proto",
"packageName": "io.restorecommerce.contact_point",
"serviceName": "ContactPointService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"address": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/address.proto",
"packageName": "io.restorecommerce.address",
"serviceName": "AddressService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"country": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/country.proto",
"packageName": "io.restorecommerce.country",
"serviceName": "CountryService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"tax": {
"address": "localhost:50063",
"mock": {
"protoPath": "io/restorecommerce/tax.proto",
"packageName": "io.restorecommerce.tax",
"serviceName": "TaxService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
},
"product": {
"address": "localhost:50068",
"mock": {
"protoPath": "io/restorecommerce/product.proto",
"packageName": "io.restorecommerce.product",
"serviceName": "ProductService",
"protoLoadOptions": {
"includeDirs": [
"node_modules/@restorecommerce/protos/"
]
}
}
}
}
}

0 comments on commit 97b5d28

Please sign in to comment.