docker-letsencrypt-webroot
docker-letsencrypt-webroot copied to clipboard
Nginx not working with ssl
Is there any exemple to configure nginx to work properly with ssl? I'm trying to configure nginx to work with ssl certs, but when ssl is active nginx does not receive connections, when i disable ssl, its works perfectly.
my nginx.conf events { worker_connections 1024; }
http { server { listen domain.my; listen 443 ssl; server_name domain.my www.domain.my;
location / {
# Just return a blank response
return 200;
}
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /tmp/letsencrypt;
}
# Enable SSL
ssl_certificate /etc/letsencrypt/live/domain.my/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.my/privkey.pem;
} }
I'm not sure this is an issue with this specific repo. Do you still need help? My Nginx config is very different from your code so...