Hello,
I am trying alpine docker from DockerHub, and a simplest config:
http {
server {
listen 80;
location /users {
proxy_pass http://users:8180;
}
location /version {
proxy_pass http://things:8182;
}
}
}
What I am getting is following:
drasko@Marx:~/go/src/github.com/mainflux/mainflux$ curl -s -S -i -X POST -H "Content-Type: application/json" http://localhost/version
HTTP/1.1 404 Not Found
Server: openresty/1.15.8.1rc1
Date: Fri, 15 Mar 2019 21:39:25 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>openresty/1.15.8.1rc1</center>
</body>
</html>
And in the docker logs:
mainflux-openresty | 2019/03/15 21:39:25 [error] 9#9: *1 open() "/usr/local/openresty/nginx/html/version" failed (2: No such file or directory), client: 172.24.0.1, server: localhost, request: "POST /version HTTP/1.1", host: "localhost"
mainflux-openresty | 172.24.0.1 - - [15/Mar/2019:21:39:25 +0000] "POST /version HTTP/1.1" 404 162 "-" "curl/7.64.0"
Any ideas what's wrong?
BR,
Drasko