не открывается по https?
server {
listen 80;
listen 443 ssl;
server_name scroogie.azat.io;
error_log /var/log/nginx/scroogie.azat.io.error.log;
location / {
return 200 "Scroogie bot";
}
ssl_certificate /etc/letsencrypt/live/scroogie.azat.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/scroogie.azat.io/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-on-centos-7
Обсуждают сегодня