My spring boot application is running in a docker environment. It is managed by docker swarm. I am trying to restrict some of the api to certain apis but the spring security is receiving private ip address instead of public.
I want the application to recieve the public address for the request so that I can use spring security to restrict access apis to certain apis.
If this is not possbile is there another solution to this?