【发布时间】:2019-09-25 00:12:45
【问题描述】:
我认为这是一个代理问题,因为我仍然可以使用 localhost 域连接到 8380。但是错误是不同的。
错误:连接 ECONNREFUSED 127.0.0.1:8080
这是我的 docker-compose 文件。我设置了 docker 覆盖网络,但它也无济于事。我认为这是代理问题。
version: '3'
services:
testidpsaml:
image: kristophjunge/test-saml-idp
environment:
- SIMPLESAMLPHP_SP_ENTITY_ID=urn:asdasd
- SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:8446/login/callback
ports:
- 8380:8080
- 8333:8443
saml-enabled-reverse-proxy:
build: ./saml-enabled-reverse-proxy
ports:
- 8446:8446
networks:
- my_net
app:
build: ./adssa
volumes:
- /Users/jbaek:/asd/src
ports:
- 8080:8080
networks:
- my_net
networks:
my_net:
在应用中,,,
...
var samlStrategy = new saml.Strategy({
// config options here
callbackUrl: 'http://localhost:8446/login/callback', //we don't use this?
// 8380 WORKS? WHY? WHY I CAN'T Connect
entryPoint: 'http://localhost:8380/simplesaml/saml2/idp/SSOService.php',
...
app.get('/',
function(req, res) {
apiProxy.web(req, res, {target: serviceProvider});
}
);
...
var server = app.listen(8446, function () {
console.log('Listening on port %d', server.address().port)
});
【问题讨论】:
标签: node.js docker docker-compose dockerfile docker-swarm