Reverse proxies
Nginx
Configure Nginx as a reverse proxy for Nitty Music Social
How to add Nginx as a reverse proxy
The following commands are tailored for Ubuntu/Debian systems. If you’re using a different Linux distribution, you may need to adjust package management commands accordingly (e.g., yum for CentOS, brew for macOS).
Install Nginx
Install Certbot for SSL
Create the Webroot Directory
Create a temporary Nginx config for creating SSL certificates
Make sure to change subdomain.domain.tld to your actual subdomain and ensure that it is pointed to your server's IP address.
Edit the file /etc/nginx/sites-available/subdomain.domain.tld:
Then create the symlink:
Obtain SSL Certificates Using Webroot method
Edit the Nginx config
Edit the file /etc/nginx/sites-available/subdomain.domain.tld.
- Secure Config (Recommended)
- Simple Config
Generate DH Parameters
(Needed if you are using the "robust" nginx config option)
Test your Nginx configuration
Automatic reload Nginx when SSL Certificates are renewed
Reload Nginx
Done!
Your Nginx reverse proxy is now running, securely serving your Nitty Music Social instance at your subdomain.domain.tld. 🎉