wiki:other:lets_encrypt_in_nginx
certbot nginx
# 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
acme.sh
./acme.sh --issue -w /var/www/html/ -d vn1222.vps-server.ru --log --dns dns_ali --server letsencrypt
wiki/other/lets_encrypt_in_nginx.txt · Последнее изменение: 2023/04/18 15:00 — Diman