I have testing docker-compose:
demo:
image: mendhak/http-https-echo
labels:
- traefik.frontend.auth.forward.address=http://192.168.0.101:8082
- traefik.frontend.auth.forward.authResponseHeaders=cookie
- traefik.frontend.rule=Host:demo.lattelecom.io
- traefik.port=80
And testing server:
http.createServer(function (req, res) {
if (req.headers['x-forwarded-uri'] === '/protected') {
res.writeHead(403, { 'Content-Type': 'text/html' });
res.write('Access Denied!');
res.end();
} else {
res.writeHead(200, { 'Content-Type': 'text/html' });
res.write('Hello World!');
res.end();
}
}).listen(8082);
Why my test server is beeing called two times per one request to demo service?