How to deploy dash app on custom domain with ssl on a specific port?

Hi I am trying to deploy my dash app on a custom domain in the VPS server and a custom port. I am currently trying to give the certificate and key file through Gunicorn with this command:
gunicorn --certfile=///cert --keyfile=///key --bind 0.0.0.0:8070 app:server

The * in the paths refers to my directory names. I have also tried to use the above command on the VPS server IP and also on 127.0.0.1. The logs show that the service runs but when I try to access it through my domain:
my-domain.com:8070” it does not connect. What could I be doing wrong here?

Hello @Dennisleon thanks for replying. I applied your suggestions beforehand and started the service by giving cert and key file path in the Gunicorn command as you wrote above. The issue is that the logs indicate that the service is running fine but when I try to access it using either the IP address or my domain it does not respond. This means that something may be blocking the traffic to the service. I am currently looking for what may be causing the issue. If you have any suggestions I will be happy to hear them.

Do you need to deploy it on a specific server? If not, try using some PaaS provider, as they greatly simplify this process. Configuring certificates is a nightmare.