Ingress nginx auto-deploy websockets

Trying to setup an app that has 2 ports one for app and one for websockets.
Trying to configure websocks with /ws but its not working not sure if we can have 2 ports open with 2 services using auto-deploy-value.yaml

Default app port 5000
Websocks port 9844
Anybody has accomplish this.

ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/enable-cors: “true”
nginx.ingress.kubernetes.io/cors-allow-origin: “*”
nginx.ingress.kubernetes.io/cors-allow-methods: “GET, POST, HEAD, OPTIONS”
nginx.ingress.kubernetes.io/cors-allow-headers: “DNT,Keep-Alive,User-Agent,If-Modified-Since,If-None-Match,Content-Type,token”
nginx.ingress.kubernetes.io/cors-allow-credentials: “false”
nginx.ingress.kubernetes.io/cors-max-age: “86400”
nginx.ingress.kubernetes.io/proxy-read-timeout: “3600”
nginx.ingress.kubernetes.io/proxy-send-timeout: “3600”
spec:
rules:
http:
paths:
- backend:
serviceName: websocks
servicePort: 9844
path: /ws/

The discussion here may be of help, it involves making a change in the post-phase to alter the configuration via a kubectl command: https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/issues/85