Letsencrypt how to access localhost web?

I’m new in docker but try to learn
I use letencrypt https://github.com/linuxserver/docker-letsencrypt
Certificate is successfully generated and validated
However I’m wondering how to access nginx web locally?
I try (my localhost) but get error

This site can’t be reached refused to connect.

Use https. Also, you should use your domain

I don’t want to use domain which define in letsencrypt, since I’m behind firewall, so port 80 not exposed
But I have successfully validated certificate using dns method
I try use, but still same error

?? If you don’t want to use the domain, why are you using this image?

You misunderstand me … I’m using domain but currently I develop my code in raspi in my office and it has firewall port 80. So I’m trying to check web which I develop…

aptalca said to use https, that is port 443, has nothing to do with port 80; further, the domain is pointed to your LE container (it’s the whole point of this container) so you should be using the domain; ie: https://./

you can also just reverse proxy to your raspi dev box.

take a look at https://blog.linuxserver.io/2019/04/25/letsencrypt-nginx-starter-guide/