My domain is:
retrostalker.com
I ran this command:
sudo certbot -m @gmail.com --agree-tos -n --nginx -d retrostalker.com -d www.retrostalker.com
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certificate not yet due for renewal
Deploying certificate
Successfully deployed certificate for retrostalker.com to /etc/nginx/nginx.conf
Successfully deployed certificate for www.retrostalker.com to /etc/nginx/nginx.conf
Congratulations! You have successfully enabled HTTPS on https://retrostalker.com and https://www.retrostalker.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
My web server is (include version):
Nginx (Latest)
The operating system my web server runs on is (include version):
Ubuntu 22 (Digital Ocean Droplet)
My hosting provider, if applicable, is:
Digital Ocean
I can login to a root shell on my machine (yes or no, or I don't know):
Logged into the shell
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
1.0
My nginx conf looks like this after running certbot:
events {
worker_connections 1024; ## Default: 1024
}
http {
server {
server_name retrostalker.com www.retrostalker.com;
location /.well-known/acme-challenge/ {
root /var/www/cerbot;
}
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/retrostalker.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/retrostalker.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = www.retrostalker.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = retrostalker.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name retrostalker.com www.retrostalker.com;
return 404; # managed by Certbot
}}
Godaddy DNS config
The site is reachable via http if i remove all the certbot generated nginx config...
This is the site: http://143.198.240.23:3000/