NS Record set & DNS Propagation check, A record Check
https://dnsmap.io/#A/spedfit.com
orhttps://dnschecker.org/#A/www.spedfit.com
If you find the IP of the server from the search above, then you are ready to go to the next step.
nano /etc/nginx/conf.d/spedfit.com.conf
server {
listen 80;
server_name spedfit.com;
#expires 1d;
location / {
#proxy_cache my_cache;
#proxy_buffering on;
#proxy_cache_valid 200 1d;
#proxy_cache_use_stale error timeout invalid_header updating
#http_500 http_502 http_503 http_504;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8822;
}
}
sudo systemctl status nginx
sudo systemctl reload nginx
sudo systemctl restart nginx
sudo nginx -t
Windows: using winscp WinScp Download
Linux: using ssh scp command (Jenkins pipeline job/groovy script generator)
sudo nano /lib/systemd/system/spedfit.service
[Unit]
Description=Spedfit website
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5s
WorkingDirectory=/home/mastererp/spedfit.com/
ExecStart=/home/mastererp/spedfit.com/spedfit
[Install]
WantedBy=multi-user.target
sudo chmod 664 /lib/systemd/system/spedfit.service
sudo systemctl daemon-reload
sudo service spedfit status
sudo service spedfit start
sudo systemctl enable spedfit
sudo certbot --nginx -d spedfit.com -d www.spedfit.com
sudo certbot --nginx -d spedfit.com -d www.spedfit.com
https://www.ssllabs.com/ssltest/analyze.html?d=spedfit.com
Check out nginx spedfit.com.conf again (too verify what changes made after obtained ssl certificate)
sudo certbot renew --dry-run
sudo firewall-cmd --list-ports
sudo firewall-cmd --permanent --add-port=8822/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --list-ports
sudo chmod +x /home/mastererp/spedfit.com/spedfit
sudo chown -R root:root /home/mastererp/spedfit.com/