Set Up NGINX¶
If you don’t want HTTPS (for communications between the external world and your node), then you can skip all the NGINX steps on this page.
Note: This simple deployment template uses NGINX for more than just HTTPS. For example, it also does basic rate limiting.
Configure & Reload NGINX¶
Get an SSL certificate for your node’s subdomain (such as bnode.example.com).
Copy the SSL private key into
/etc/nginx/ssl/cert.keyCreate a “PEM file” (text file) by concatenating your SSL certificate with all intermediate certificates (in that order, with the intermediate certs last).
Copy that PEM file into
/etc/nginx/ssl/cert.pemIn the bigchaindb/bigchaindb repository on GitHub, find the file
nginx/nginx.confand copy its contents to/etc/nginx/nginx.confon your machine (i.e. replace the existing file there).Edit that file (
/etc/nginx/nginx.conf): replace the two instances of the stringexample.testnet2.comwith your chosen subdomain (such asbnode.example.com).Reload NGINX by doing:
sudo service nginx reload