117 lines
2.9 KiB
JSON
117 lines
2.9 KiB
JSON
{
|
|
"JwtSettings": {
|
|
"SecretKey": "1cuvNq1rUe8GLnHeKoWXpmWH5VoZW/+RydX7ONQ1nc4=",
|
|
"Issuer": "LingAdmin.IdentityService",
|
|
"Audience": "LingAdmin.Client"
|
|
},
|
|
"Services": {
|
|
"IdentityService": {
|
|
"BaseUrl": "http://localhost:5001",
|
|
"DaprAppId": "identity-service"
|
|
},
|
|
"AuthorizationService": {
|
|
"BaseUrl": "http://localhost:5002",
|
|
"DaprAppId": "authorization-service"
|
|
}
|
|
},
|
|
"ReverseProxy": {
|
|
"Routes": {
|
|
"auth-route": {
|
|
"ClusterId": "identity-cluster",
|
|
"Match": {
|
|
"Path": "/api/auth/{**catch-all}"
|
|
},
|
|
"Transforms": [
|
|
{ "PathRemovePrefix": "" }
|
|
]
|
|
},
|
|
"users-list-route": {
|
|
"ClusterId": "identity-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/users"
|
|
}
|
|
},
|
|
"users-route": {
|
|
"ClusterId": "identity-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/users/{**catch-all}"
|
|
}
|
|
},
|
|
"roles-list-route": {
|
|
"ClusterId": "authorization-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/roles"
|
|
}
|
|
},
|
|
"roles-route": {
|
|
"ClusterId": "authorization-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/roles/{**catch-all}"
|
|
}
|
|
},
|
|
"authorization-route": {
|
|
"ClusterId": "authorization-cluster",
|
|
"Match": {
|
|
"Path": "/api/authorization/{**catch-all}"
|
|
}
|
|
},
|
|
"permissions-list-route": {
|
|
"ClusterId": "authorization-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/permissions"
|
|
}
|
|
},
|
|
"permissions-route": {
|
|
"ClusterId": "authorization-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/permissions/{**catch-all}"
|
|
}
|
|
},
|
|
"requisitions-list-route": {
|
|
"ClusterId": "identity-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/requisitions"
|
|
}
|
|
},
|
|
"requisitions-route": {
|
|
"ClusterId": "identity-cluster",
|
|
"AuthorizationPolicy": "default",
|
|
"Match": {
|
|
"Path": "/api/requisitions/{**catch-all}"
|
|
}
|
|
}
|
|
},
|
|
"Clusters": {
|
|
"identity-cluster": {
|
|
"Destinations": {
|
|
"identity-service": {
|
|
"Address": "http://localhost:5001"
|
|
}
|
|
}
|
|
},
|
|
"authorization-cluster": {
|
|
"Destinations": {
|
|
"authorization-service": {
|
|
"Address": "http://localhost:5002"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning",
|
|
"Yarp": "Information"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|