imcmaster.duckdns.org로 설정
sudo certbot certonly -a webroot -w /var/www/letsencrypt/ -d imcmaster.duckdns.org
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for imcmaster.duckdns.org
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/imcmaster.duckdns.org/fullchain.pem
Key is saved at: /etc/letsencrypt/live/imcmaster.duckdns.org/privkey.pem
This certificate expires on 2024-02-29.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
80포트만 ssl이 가능하므로 나머지 포트는 아래와 같이 추가
/etc/nginx/sites-avaliable/default에 프록시설정 추가
location /fetch {
proxy_pass http://winubuntu:7878;
} # pass PHP scripts to FastCGI server
crontab -e
0 12 * * * /usr/bin/certbot renew --quiet