How can I use træfik for routing to external endpoint?

Hi,

I have Azure Kubernetes cluster and I am using traefik 2.5.4. I have an external endpoint which is like this: 10.16.80.14:5000. I want to point everything which is coming on server.weu.test.dev.domain.com and weu.test.dev.domain.com/server to go to 10.16.80.14:5000. For the purpose, I`ve created CRDs- Ingress routes for http and https, middleware to strip the prefix, service and endpoint.

The problem is that I am still receiving 504(Gateway Timeout) which point`s me that there is no route to the endpoint. Here are my configurations:

The ingress route for https(omitted the second one for more clear)

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: server-ingress-route-https
  namespace: default
spec:
  entryPoints:
    - websecure
  routes:
    - kind: Rule
      match: Host(`server.weu.test.dev.domain.com`)
      middlewares:
        - name: server-middleware-stripprefix
          namespace: default
      services:
        - kind: Service
          name: server-service
          namespace: default
          port: 5000
          scheme: http
    - kind: Rule
      match: Host(`weu.test.dev.domain.com`) && PathPrefix(`/server`)
      middlewares:
        - name: server-middleware-stripprefix
          namespace: default
      services:
        - kind: Service
          name: server-service
          namespace: default
          port: 5000
          scheme: http
  tls:
    secretName: cluster-certificate-secret

The Service:

apiVersion: v1
kind: Service
metadata:
  name: server-service
spec:
  type: ExternalName
  externalName: 10.16.80.14
  ports:
  - name:  server-service
    port: 5000
    protocol: TCP
    targetPort: 5000

The Endpoint

apiVersion: v1
kind: Endpoints
metadata:
  name: server-endpoint
subsets:
- addresses:
  - ip: 10.16.80.14
  ports:
  - name: server-endpoint
    port: 5000
    protocol: TCP

The middleware:

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: server-middleware-stripprefix
  namespace: default
spec:
  stripPrefix:
    prefixes:
      - /chartserver

In my case, I don`t think the endpoint CRD is used, as the service has the same config, but it is not so clear for me. And recommendations will be helpful!

Thanks in advance!