From 95123ee6b292c57fdd267a6b883732eb89c5d15b Mon Sep 17 00:00:00 2001 From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com> Date: Sun, 6 Apr 2025 19:23:23 +0330 Subject: [PATCH] feat: add modular monolith source --- .../src/Api/src/appsettings.json | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/2-modular-monolith-architecture-style/src/Api/src/appsettings.json b/2-modular-monolith-architecture-style/src/Api/src/appsettings.json index 5749172..1cf37da 100644 --- a/2-modular-monolith-architecture-style/src/Api/src/appsettings.json +++ b/2-modular-monolith-architecture-style/src/Api/src/appsettings.json @@ -13,30 +13,23 @@ }, "PostgresOptions": { "ConnectionString": { - "Flight": "Server=localhost;Port=5432;Database=flight;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", - "Passenger": "Server=localhost;Port=5432;Database=passenger;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_modular_monolith;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": { "ConnectionString": "mongodb://localhost:27017", - "DatabaseName": "booking-read" + "DatabaseName": "booking_modular_monolith_read" }, "EventStoreOptions": { "ConnectionString": "esdb://localhost:2113?tls=false" }, "Jwt": { - "Authority": "http://localhost:6005", - "Audience": "flight-api", + "Authority": "http://localhost:5001", + "Audience": "booking_modular_monolith", "RequireHttpsMetadata": false, - "MetadataAddress": "http://localhost:6005/.well-known/openid-configuration" - }, - "RabbitMqOptions": { - "HostName": "localhost", - "ExchangeName": "flight", - "UserName": "guest", - "Password": "guest", - "Port": 5672 + "MetadataAddress": "http://localhost:5001/.well-known/openid-configuration" }, "PersistMessageOptions": { "Interval": 30, @@ -47,7 +40,7 @@ "Enabled": false }, "ObservabilityOptions": { - "InstrumentationName": "flight_service", + "InstrumentationName": "booking_modular_monolith_service", "OTLPOptions": { "OTLPGrpExporterEndpoint": "http://localhost:4317" }, @@ -65,7 +58,7 @@ "UseOTLPExporter": true, "UseAspireOTLPExporter": true, "UseGrafanaExporter": false, - "ServiceName": "Flight Service" + "ServiceName": "Booking Modular Monolith Service" }, "AllowedHosts": "*" }