Configure for Nginx passenger

I have created an app from the Hotwire DHH video and it works fine if I run it using puma

But if I use Nginx and a name in hosts file it will not create a connection
I believe turbo frames works but the cacti cable side of things fails ie the javascript cannot connection tote server.

I checked my Nginx logs and it says the following

2021/01/23 23:44:35 [error] 48393#0: *16 open() "/usr/local/Cellar/nginx/1.19.6/html/cable" failed (2: No such file or directory), client: 127.0.0.1, server: hotpipeline.local, request: "GET /cable HTTP/1.1", host: "hotpipeline.local"

the Nginx.conf as follows

server {
rack_env development;
passenger_enabled on;
passenger_user russellroberts;

client_max_body_size 500M;
listen       80;
server_name  hotpipeline.local;

location / {
	 root   /Users/russellroberts/Sites/hotpipeline/public;
	passenger_ruby  /Users/russellroberts/.rbenv/versions/3.0.0/bin/ruby;
	
	passenger_enabled on;
    index index.html index.htm;

}
location /cable {
    passenger_app_group_name hotpipeline_action_cable;
    passenger_force_max_concurrent_requests_per_process 0;
}
error_page   500 502 503 504  /50x.html;
location = /50x.html {
	 root   html;
    index  index.html index.htm;
}

}

server  {
         rack_env development;
				 passenger_user  russellroberts;
	 client_max_body_size 500M;
        listen 443 ssl http2;
				passenger_enabled on;
	
        server_name  hotpipeline.local;
        error_page 413 /custom_413.html;
        location = /custom_413.html {
                root /usr/local/var/www;   
                internal;
        } 
         location / {
  
 			passenger_ruby  /Users/russellroberts/.rbenv/versions/3.0.0/bin/ruby;
 			root   /Users/russellroberts/Sites/hotpipeline/public;
            index  index.html index.htm;
            passenger_enabled on;

        }
        ssl_certificate     /etc/ssl/self-ssl.crt;
        ssl_certificate_key /etc/ssl/self-ssl.key;
        ssl_session_timeout  1d;
  }
	#################################

I am running locally on a Mac

I been struggling for days and not getting any where
would appreciate some helpers

I did set up action cable on a ubuntu server with Nginx that works fine with little configuring on the rails side

Maybe the Hotwire stuff is setting things differently

my routes say

mount ActionCable.server => ‘/cable’

Thanks

Ok found a solution

In development was running as http normally I force ssl true in config
so in config/environments/development.rb
config.force_ssl = true

I tried lost of things for example setting
#config.action_cable.url = “wss://hotpipeline.local/cable”

but once I set force_ssl to true all these other fixes seemed unnecessary