Closed ruchit-parikh closed 9 months ago
I'm unsure if this is the case on App Engine Flex as it is in other managed GCP services, but services like GKE require you to only communicate via ingresses if you use port 80 or port 443. If that is the case on App Engine Flex as it is on GKE ingress, then I would recommend you try adapting the "Same location for websockets and web contents" nginx block from the beyondcode documentation.
Using that nginx block with the traffic type map has been the best way of hosting websockets on GKE without differentiating url path to /ws and still routing that modified path over 443.
Thanks but can you please provide nginx file for that ? I dont know how to write that! Your help is really appriciated!!!!!
I am using Laravel 6 and trying to setup websocket on Google Cloud Flex Environment. This is my nginx-app.conf file
I am setting this values in websockets
Also my app.yaml
I have also open port 6001 on firewall. Can you please help me with this? We are stuck with this problem from last month! Everything works on local machine though trouble setting up on google cloud.