{“ StatusCode”:500,“ Message”:“内部服务器错误。”}在MVC客户端容器中,我检查了容器的日志。我收到以下错误。
Unable to obtain configuration from 'http://localhost:44338/.well-known/openid-configuration'
此上面的URL表示也在容器中运行的Identity Server 4。我的docker-compose的顺序是
version: '3.4'
services:
identity.api:
environment:
- ASPNETCORE_URLS=https://+:443;http://+:80
- MvcClient=http://localhost:44353
ports:
- "44338:80"
- "443"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
rinmvc:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80;
- ASPNETCORE_URLS=http://0.0.0.0:80
- IdentityUrl=http://localhost:44338
ports:
- "44353:80"
- "443"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
我正在使用docker-compose开发.Net core 3.1中的微服务。我们正在使用基于Linux的Docker容器。 MVC客户端应用程序与Identity 4 API一起在IIS express中完美运行,...