I have a VM instance running in the cloud.
I would like to allow requests to one endpoint in the application running there from all sources, while blocking all requests to an other endpoint if they are not from a specific IP.
e.g. domain.com/endpoint should be accessible by all IPs - domain.com should be accessible from one IP.
Currently i am blocking all requests to domain.com if you are not from a specific IP using the firewall feature.
Unfortunatly i do not not know much about this subject - so i am having trouble even searching for what i need, since i dont know the right terms, or what the google cloud product would be called. I looked briefly at endpoints, but it seems that is for APIs - so i dont think that is what i need.
Does anyone know what product i need to use?
EDIT:
I am running adguard home, using docker - it is already serving dns over tls, and i wish to serve dns over https too.
Both the domain.com request and the domain.com/endpoint request is served by the same image. The issue is that both the UI and doh is served on the same port, and it is not possible for me to configure which port the UI uses, at least from inside the menues. it does not seem wise to me to expose a login interface to the entire internet.
It would not be a problem for me add other docker containers to handle this. But i would prefer that it stayed a google cloud configuration issue. Cloudflare is also an option for me. It is already configured for other parts of my domain.