# Nginx conf
server {
listen 80;
server_name edge;
access_log /var/log/edge.access.log main;
error_log /var/log/edge.error.log;
location / {
proxy_pass http://edge:3343;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
location /.well-known/acme-challenge/ {
root /var/www;
default_type text/plain;
}
}
# Тестируем..
certbot certonly --agree-tos --webroot -w /var/www -d edge --email support@vps-server.ru --dry-run
# получаем сертификат
certbot certonly --agree-tos --webroot -w /var/www -d edge --email support@vps-server.ru