How connect in Docker Homeassistant,Nginx to reach it over https?

Hi to all

iam triying to reach my Homeassistant over my https. This not working for me.
Over http I can reach everything and this is fine.

Failure:nginx: [emerg] cannot load certificate "/$/$/$/ha.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/$/$/$/ha.pem, r) error:10000080:BIO routines::no such file)

chmod 600 on ha.pem
chown root:root on ha.pem

How I set up nginx ?

docker container run -d --restart always --name http --network homeassistant -v /$/$/$:/etc/nginx -v /$/$/$:/var/log/nginx -v /$/$/$:/www -p 80:80 -p 443:443 nginx:1.27.3

my nginx con look like this

server {
        listen 8123;
        server_name $:8123;

        # SSL Configuration
        ssl_certificate         /$/$/$/ha.pem;
        ssl_certificate_key     server.key;
        ssl_protocols           TLSv1 TLSv1.1 TLSv1.2;



        # Security Headers
        add_header Strict-Transporter-Security "max-age=315360000;
        includeSubDomains" always;

        location / {
                proxy_pass http://$:8123/;

        }
}

Does anybody out there can help me?