-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#110: addin production environment to apigateway
- Loading branch information
1 parent
2d75f94
commit 8788b3d
Showing
5 changed files
with
231 additions
and
7 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
SwiftParcel.API.Gateway/src/SwiftParcel.API.Gateway/production.appsettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"logger": { | ||
"excludePaths": ["/", "/ping", "/metrics"], | ||
"console": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true, | ||
"path": "logs/logs.txt", | ||
"interval": "day" | ||
}, | ||
"seq": { | ||
"enabled": true, | ||
"url": "http://seq:5341", | ||
"apiKey": "secret" | ||
} | ||
}, | ||
"metrics": { | ||
"enabled": true, | ||
"influxEnabled": false, | ||
"prometheusEnabled": true, | ||
"influxUrl": "http://influx:8086", | ||
"database": "swiftparcel", | ||
"env": "local", | ||
"interval": 5 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
161 changes: 161 additions & 0 deletions
161
...ExternalAPI.Lecturer.Api/SwiftParcel.ExternalAPI.Lecturer.Api/production.appsettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
{ | ||
"app": { | ||
"name": "SwiftParcel Lecturer API Service", | ||
"service": "lecturer-api-service", | ||
"version": "1" | ||
}, | ||
"consul": { | ||
"enabled": true, | ||
"url": "http://consul:8500", | ||
"service": "lecturer-api-service", | ||
"address": "lecturer-api-service", | ||
"port": "80", | ||
"pingEnabled": true, | ||
"pingEndpoint": "ping", | ||
"pingInterval": 3, | ||
"removeAfterInterval": 3 | ||
}, | ||
"fabio": { | ||
"enabled": false, | ||
"url": "http://fabio:9999", | ||
"service": "lecturer-api-service" | ||
}, | ||
"httpClient": { | ||
"type": "direct", | ||
"retries": 3, | ||
"services": { | ||
"lecturer-api": "https://mini.currier.api.snet.com.pl", | ||
"lecturer-api-identity": "https://indentitymanager.snet.com.pl/connect/token" | ||
}, | ||
"token": "dGVhbTJkOkVBQUE1MEI4LTkwQ0ItNDM2RS05ODY0LTRCQzc1QjU2RjNCRQ==", | ||
"requestMasking": { | ||
"enabled": true, | ||
"maskTemplate": "*****" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"vault": { | ||
"enabled": false, | ||
"url": "http://127.0.0.1:8200", | ||
"authType": "userpass", | ||
"token": "secret", | ||
"username": "user", | ||
"password": "piotr-amadeusz-andrii-2023", | ||
"dbusername": "andrii-courier-db-user", | ||
"kv": { | ||
"enabled": true, | ||
"engineVersion": 2, | ||
"mountPoint": "secret", | ||
"path": "lecturer-api-service/settings" | ||
}, | ||
"pki": { | ||
"enabled": false, | ||
"roleName": "lecturer-api-service", | ||
"commonName": "lecturer-api-service.swiftparcel.com" | ||
}, | ||
"lease": { | ||
"mongo": { | ||
"type": "database", | ||
"roleName": "lecturer-api-service", | ||
"enabled": false, | ||
"autoRenewal": true, | ||
"templates": { | ||
"connectionString": "mongodb+srv://andrii-courier-db-user:piotr-amadeusz-andrii-2023@cluster0.br51nsv.mongodb.net/?retryWrites=true&w=majority" | ||
} | ||
} | ||
} | ||
}, | ||
"logger": { | ||
"level": "information", | ||
"excludePaths": ["/", "/ping", "/metrics"], | ||
"excludeProperties": [ | ||
"api_key", | ||
"access_key", | ||
"ApiKey", | ||
"ApiSecret", | ||
"ClientId", | ||
"ClientSecret", | ||
"ConnectionString", | ||
"Password", | ||
"Email", | ||
"Login", | ||
"Secret", | ||
"Token" | ||
], | ||
"console": { | ||
"enabled": true | ||
}, | ||
"elk": { | ||
"enabled": false, | ||
"url": "http://localhost:9200" | ||
}, | ||
"file": { | ||
"enabled": true, | ||
"path": "logs/logs.txt", | ||
"interval": "day" | ||
}, | ||
"seq": { | ||
"enabled": true, | ||
"url": "http://localhost:5341", | ||
"apiKey": "secret" | ||
}, | ||
"tags": {} | ||
}, | ||
"swagger": { | ||
"enabled": true, | ||
"reDocEnabled": false, | ||
"name": "v1", | ||
"title": "API", | ||
"version": "v1", | ||
"routePrefix": "docs", | ||
"includeSecurity": true | ||
}, | ||
|
||
"mongo": { | ||
"connectionString": "mongodb+srv://andrii-courier-db-user:piotr-amadeusz-andrii-2023@cluster0.br51nsv.mongodb.net/?retryWrites=true&w=majority", | ||
"database": "lecturer-api-service", | ||
"seed": false | ||
}, | ||
"rabbitMq": { | ||
"connectionName": "lecturer-api-service", | ||
"retries": 3, | ||
"retryInterval": 2, | ||
"conventionsCasing": "snakeCase", | ||
"logger": { | ||
"enabled": true | ||
}, | ||
"username": "guest", | ||
"password": "guest", | ||
"virtualHost": "/", | ||
"port": 5672, | ||
"hostnames": [ | ||
"rabbitmq" | ||
], | ||
"requestedConnectionTimeout": "00:00:30", | ||
"requestedHeartbeat": "00:01:00", | ||
"socketReadTimeout": "00:00:30", | ||
"socketWriteTimeout": "00:00:30", | ||
"continuationTimeout": "00:00:20", | ||
"handshakeContinuationTimeout": "00:00:10", | ||
"networkRecoveryInterval": "00:00:05", | ||
"exchange": { | ||
"declare": true, | ||
"durable": true, | ||
"autoDelete": false, | ||
"type": "topic", | ||
"name": "identity" | ||
}, | ||
"queue": { | ||
"declare": true, | ||
"durable": true, | ||
"exclusive": false, | ||
"autoDelete": false, | ||
"template": "lecturer-api-service/{{exchange}}.{{message}}" | ||
}, | ||
"context": { | ||
"enabled": true, | ||
"header": "message_context" | ||
}, | ||
"spanContextHeader": "span_context" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters