2022-05-26 00:27:57 +04:30

93 lines
2.0 KiB
JSON

{
"AppOptions": {
"Name": "ApiGateway"
},
"LogOptions": {
"Level": "Information",
"LogTemplate": "{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}",
"ElasticUri": "http://localhost:9200"
},
"Yarp": {
"routes": {
"identity": {
"clusterId": "identity",
"match": {
"path": "{**catch-all}"
},
"transforms": [
{
"pathPattern": "{**catch-all}"
}
]
},
"flight": {
"clusterId": "flight",
"match": {
"path": "api/{version}/flight/{**catch-all}"
},
"transforms": [
{
"pathPattern": "api/{version}/flight/{**catch-all}"
}
]
},
"passenger": {
"clusterId": "passenger",
"match": {
"path": "api/{version}/passenger/{**catch-all}"
},
"transforms": [
{
"pathPattern": "api/{version}/passenger/{**catch-all}"
}
]
},
"booking": {
"clusterId": "booking",
"match": {
"path": "api/{version}/booking/{**catch-all}"
},
"transforms": [
{
"pathPattern": "api/{version}/booking/{**catch-all}"
}
]
}
},
"clusters": {
"flight": {
"destinations": {
"destination1": {
"address": "https://localhost:5003"
}
}
},
"identity": {
"destinations": {
"destination1": {
"address": "https://localhost:5005"
}
}
},
"passenger": {
"destinations": {
"destination1": {
"address": "https://localhost:5012"
}
}
},
"booking": {
"destinations": {
"destination1": {
"address": "https://localhost:5010"
}
}
}
}
},
"Jwt": {
"Authority": "https://localhost:5005"
},
"AllowedHosts": "*"
}