docker-nginx-auto-ssl icon indicating copy to clipboard operation
docker-nginx-auto-ssl copied to clipboard

server autossl.com not found

Open snowuyl opened this issue 2 years ago • 2 comments

I add docker-compose.yml as follows. And then I run "docker-compose up -d" command. But Firefox Browser can connect to https://localhost and can't connect to https://autossl.com/

docker-compose.yml

version: '2' services: nginx: image: valian/docker-nginx-auto-ssl restart: on-failure ports: - 80:80 - 443:443 volumes: - ssl_data:/etc/resty-auto-ssl environment: ALLOWED_DOMAINS: 'autossl.com' SITES: 'autossl.com=myapp:80'

your application, listening on port specified in SITES env variable

myapp: image: nginx

volumes: ssl_data:

snowuyl avatar Sep 14 '22 03:09 snowuyl

Hi @snowuyl!

To make it work, you have to:

  • own the domain
  • point address of the domain autossl to your server (DNS type A record)
  • and then on this server, you have to launch my docker image

I don't think you covered points 1 and 2 and launched image on your own laptop / PC. It won't work. The internet has lots of resources about that, eg. here. Closing it for now.

Valian avatar Oct 04 '22 21:10 Valian