This guide provides the necessary steps to manually deploy the backend and connect your domain using Nginx on a DigitalOcean Droplet.
https://api.209.38.80.244.nip.io/api/v1ssh root@209.38.80.244./deploy.sh- Open Nginx Config File:
nano /etc/nginx/sites-available/alex-booking-backend- Update the
server_nameBlock:
server {
listen 80;
server_name https://www.api.alexrodriguez.com.au/; # Replace with your actual domain
location / {
proxy_pass http://localhost:8000;
# Additional configuration (headers, timeouts, etc.) can go here
}
}- Create a Symlink (if not already done):
sudo ln -s /etc/nginx/sites-available/alex-booking-backend /etc/nginx/sites-enabled/- Test and Reload Nginx:
sudo nginx -t
sudo systemctl reload nginxYour backend should now be accessible at:
https://www.api.alexrodriguez.com.au/
To secure your API with SSL, run:
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d https://www.api.alexrodriguez.com.au/📌 Make sure your domain
https://www.api.alexrodriguez.com.au/is pointing to your Droplet's IP (209.38.80.244) via DNS A record.