Prerequisites
This guide assumes that you have the following:
An Ubuntu 22.04 server setup, as described in the initial server setup guide for Ubuntu 22.04. You should have a non-root user with sudo privileges and an active firewall. A domain name pointed at your server’s public IP. This tutorial will use the domain name example.com throughout. Nginx installed, as covered in How To Install Nginx on Ubuntu 22.04. Nginx configured with SSL using Let’s Encrypt certificates. How To Secure Nginx with Let’s Encrypt on Ubuntu 22.04 will walk you through the process. Node.js installed on your server. How To Install Node.js on Ubuntu 22.04 When you’ve completed the prerequisites, you will have a server serving your domain’s default placeholder page at https://example.com/.