API request not working on Production

I have hosted frappe on my own server using docker and I am supposed to have a few API integrations but the API my-site.com/resources/api/lead is going to :8080 port of the IP address somehow , I have tried to add things like webport use https force htytps to the backend but still no luck would anyone know how can I configure the reverse proxy traefik to route properly