2

I've created a service inside minikube (expressjs API) running on my local machine, so when I launch the service using minikube service wedeliverapi --url I can access it from my browser with localhost:port/api

enter image description here

enter image description here

But I also want to access that service from another device so I can use my API from a flutter mobile application. How can I achieve this goal?

Wytrzymały Wiktor
  • 11,492
  • 5
  • 29
  • 37
Ali Ourag
  • 92
  • 7

1 Answers1

0

Due to small amount of information and to clarify everything- I am posting a general Community wiki answer.

The solution to solve this problem was to use reverse proxy server. In this documentation is definiton what exactly is reverse proxy server .

A proxy server is a go‑between or intermediary server that forwards requests for content from multiple clients to different servers across the Internet. A reverse proxy server is a type of proxy server that typically sits behind the firewall in a private network and directs client requests to the appropriate backend server. A reverse proxy provides an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers

Common uses for a reverse proxy server include:

  • Load balancing
  • Web acceleration
  • Security and anonymity

This is the guide where one can find basic configuration of a proxy server.

See also this article.

kkopczak
  • 742
  • 2
  • 8