When setting up a development server that will be accessible over the internet, it is a good idea to use ssl.
Below are some snippets for setting up self signed certificates:
sudo openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 \
-keyout /etc/nginx/ssl/nginx.key \