[Resolved] Network nginx docker configuration pb

I am trying to install a bitwarden server docker instance in a Ubuntu VM2.
I have a VM1 with nginx which will receive the internet request “bitwarden.mydomaine”.
This nginx will resend the request on port 80 to https (443)
This nginx will get the 443 port request and send it to VM2 on port 8443.

On the VM2 I have configure the “bwdata/config.yml” and the “docker/docker-compose.yml” to use port 8080 and 8443 in stead of port 80 ans 443 (already used by another service)

When I start the bitwarden docker it seem to work fine.
=> “Bitwarden is up and running!”

But on a brother I dont succed to connect to “bitwarden.mydomaine”

I think my problem is more a nginx/docker configuration than bitwarden…
any idea to solve it ?


in fact my probleme is more located in the nginx part of the bitwarden docker.
When I look at the log/nginx I have :
" cannot load certificate “/opt/bitwarden/bwdata/ssl/bitwarden.mydomain/cert.pem”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory"
but the file exist and has the certificate inside.

Any idee? is there a special place somewhere elese to put the keys and certificate ?

for the one who could have the same pb (who does not read the comment in the config.yml file…)
The “/opt/bitwarden/bwdata/ssl” is mount inside the docker as “/etc/ssl”

and now it work!