feat: add modular monolith source

This commit is contained in:
Meysam Hadeli 2025-04-06 19:23:23 +03:30
parent d278e36fd2
commit 95123ee6b2

View File

@ -13,30 +13,23 @@
}, },
"PostgresOptions": { "PostgresOptions": {
"ConnectionString": { "ConnectionString": {
"Flight": "Server=localhost;Port=5432;Database=flight;User Id=postgres;Password=postgres;Include Error Detail=true", "Flight": "Server=localhost;Port=5432;Database=flight_modular_monolith;User Id=postgres;Password=postgres;Include Error Detail=true",
"Identity": "Server=localhost;Port=5432;Database=identity;User Id=postgres;Password=postgres;Include Error Detail=true", "Identity": "Server=localhost;Port=5432;Database=identity_modular_monolith;User Id=postgres;Password=postgres;Include Error Detail=true",
"Passenger": "Server=localhost;Port=5432;Database=passenger;User Id=postgres;Password=postgres;Include Error Detail=true" "Passenger": "Server=localhost;Port=5432;Database=passenger_modular_monolith;User Id=postgres;Password=postgres;Include Error Detail=true"
} }
}, },
"MongoOptions": { "MongoOptions": {
"ConnectionString": "mongodb://localhost:27017", "ConnectionString": "mongodb://localhost:27017",
"DatabaseName": "booking-read" "DatabaseName": "booking_modular_monolith_read"
}, },
"EventStoreOptions": { "EventStoreOptions": {
"ConnectionString": "esdb://localhost:2113?tls=false" "ConnectionString": "esdb://localhost:2113?tls=false"
}, },
"Jwt": { "Jwt": {
"Authority": "http://localhost:6005", "Authority": "http://localhost:5001",
"Audience": "flight-api", "Audience": "booking_modular_monolith",
"RequireHttpsMetadata": false, "RequireHttpsMetadata": false,
"MetadataAddress": "http://localhost:6005/.well-known/openid-configuration" "MetadataAddress": "http://localhost:5001/.well-known/openid-configuration"
},
"RabbitMqOptions": {
"HostName": "localhost",
"ExchangeName": "flight",
"UserName": "guest",
"Password": "guest",
"Port": 5672
}, },
"PersistMessageOptions": { "PersistMessageOptions": {
"Interval": 30, "Interval": 30,
@ -47,7 +40,7 @@
"Enabled": false "Enabled": false
}, },
"ObservabilityOptions": { "ObservabilityOptions": {
"InstrumentationName": "flight_service", "InstrumentationName": "booking_modular_monolith_service",
"OTLPOptions": { "OTLPOptions": {
"OTLPGrpExporterEndpoint": "http://localhost:4317" "OTLPGrpExporterEndpoint": "http://localhost:4317"
}, },
@ -65,7 +58,7 @@
"UseOTLPExporter": true, "UseOTLPExporter": true,
"UseAspireOTLPExporter": true, "UseAspireOTLPExporter": true,
"UseGrafanaExporter": false, "UseGrafanaExporter": false,
"ServiceName": "Flight Service" "ServiceName": "Booking Modular Monolith Service"
}, },
"AllowedHosts": "*" "AllowedHosts": "*"
} }