Merge pull request #170 from meysamhadeli/develop

chore: Update appsettings.docker.json
This commit is contained in:
Meysam Hadeli 2023-02-08 23:03:24 +03:30 committed by GitHub
commit d4c80b38b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 101 additions and 8 deletions

View File

@ -11,6 +11,13 @@
"Enabled": true, "Enabled": true,
"ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true" "ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true"
}, },
"EventStore": {
"ConnectionString": "esdb://eventstore:2113?tls=false"
},
"MongoOptions": {
"ConnectionString": "mongodb://mongo:27017",
"DatabaseName": "booking-db"
},
"RabbitMqOptions": { "RabbitMqOptions": {
"HostName": "rabbitmq", "HostName": "rabbitmq",
"ExchangeName": "booking", "ExchangeName": "booking",
@ -18,9 +25,32 @@
"Password": "guest", "Password": "guest",
"Port": 5672 "Port": 5672
}, },
"Jwt": {
"Authority": "identity:5005",
"Audience": "booking-api"
},
"Grpc": { "Grpc": {
"FlightAddress": "https://localhost:5003", "FlightAddress": "flight:5003",
"PassengerAddress": "https://localhost:5003" "PassengerAddress": "passenger:5003"
},
"LogOptions": {
"Level": "information",
"LogTemplate": "{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}",
"Elastic": {
"Enabled": true,
"ElasticServiceUrl": "elasticsearch:9200"
},
"File": {
"Enabled": false,
"Path": "logs/logs.txt",
"Interval": "day"
},
"Sentry": {
"Enabled": false,
"Dsn": "",
"MinimumBreadcrumbLevel": "information",
"MinimumEventLevel":"error"
}
}, },
"AllowedHosts": "*" "AllowedHosts": "*"
} }

View File

@ -1,16 +1,29 @@
{ {
"App": "Flight-Service", "App": "Flight-Service",
"Logging": { "LogOptions": {
"LogLevel": { "Level": "information",
"Default": "Debug", "LogTemplate": "{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}",
"Microsoft.AspNetCore": "Warning" "Elastic": {
"Enabled": true,
"ElasticServiceUrl": "elasticsearch:9200"
},
"File": {
"Enabled": false,
"Path": "logs/logs.txt",
"Interval": "day"
},
"Sentry": {
"Enabled": false,
"Dsn": "",
"MinimumBreadcrumbLevel": "information",
"MinimumEventLevel": "error"
} }
}, },
"PostgresOptions": { "PostgresOptions": {
"ConnectionString": "Server=postgres;Port=5432;Database=flight;User Id=postgres;Password=postgres;Include Error Detail=true" "ConnectionString": "Server=postgres;Port=5432;Database=flight;User Id=postgres;Password=postgres;Include Error Detail=true"
}, },
"Jwt": { "Jwt": {
"Authority": "https://localhost:5005", "Authority": "identity:5005",
"Audience": "flight-api" "Audience": "flight-api"
}, },
"RabbitMq": { "RabbitMq": {
@ -25,5 +38,9 @@
"Enabled": true, "Enabled": true,
"ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true" "ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true"
}, },
"MongoOptions": {
"ConnectionString": "mongodb://mongo:27017",
"DatabaseName": "flight-db"
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

View File

@ -15,5 +15,28 @@
"Password": "guest", "Password": "guest",
"Port": 5672 "Port": 5672
}, },
"Jwt": {
"Authority": "identity:5005",
"Audience": "identity-api"
},
"LogOptions": {
"Level": "information",
"LogTemplate": "{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}",
"Elastic": {
"Enabled": true,
"ElasticServiceUrl": "elasticsearch:9200"
},
"File": {
"Enabled": false,
"Path": "logs/logs.txt",
"Interval": "day"
},
"Sentry": {
"Enabled": false,
"Dsn": "",
"MinimumBreadcrumbLevel": "information",
"MinimumEventLevel":"error"
}
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

View File

@ -9,9 +9,13 @@
"ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true" "ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true"
}, },
"Jwt": { "Jwt": {
"Authority": "https://localhost:5005", "Authority": "identity:5005",
"Audience": "passenger-api" "Audience": "passenger-api"
}, },
"MongoOptions": {
"ConnectionString": "mongodb://mongo:27017",
"DatabaseName": "passenger-db"
},
"RabbitMqOptions": { "RabbitMqOptions": {
"HostName": "rabbitmq", "HostName": "rabbitmq",
"ExchangeName": "passenger", "ExchangeName": "passenger",
@ -19,5 +23,24 @@
"Password": "guest", "Password": "guest",
"Port": 5672 "Port": 5672
}, },
"LogOptions": {
"Level": "information",
"LogTemplate": "{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}",
"Elastic": {
"Enabled": true,
"ElasticServiceUrl": "elasticsearch:9200"
},
"File": {
"Enabled": false,
"Path": "logs/logs.txt",
"Interval": "day"
},
"Sentry": {
"Enabled": false,
"Dsn": "",
"MinimumBreadcrumbLevel": "information",
"MinimumEventLevel":"error"
}
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }