Closed mishushakov closed 5 years ago
Moved To Kubernetes & Traefik. Problem solved. Thank you again @zeit for creating the library
Best wishes.
Moved To Kubernetes & Traefik. Problem solved. Thank you again @zeit for creating the library
Best wishes.
Recently I am looking into Micro
, I also went into this problem. Thanks! I will try it.
Hey, im running into issue here. I have created a micro-service, built it using docker and provisioned it with docker compose (together with Nginx reverse proxy on the same overlay network). For some unknown reason, when running behind a proxy, the req.method in the javascript does not match the actual request method. Here is a screenshot of what I'm talking about:
The first terminal is displaying micro-dev output, which i attached to the container (running on port 80) The second terminal displays the nginx logs
In the background you can see the Postman client with "PUT" request method selected. But for some reason micro sees "GET" there :(
Here is my Nginx configuration file:
However, when i have exposed the
auth
service to my host machine, I could do any of request methods, that my app supports. I will later try to run some other proxy software and see if it works.Thank you.