...
2. Create an htpasswd file if required
Code Block | ||
---|---|---|
| ||
#create a username/password if it's required
cd /etc/nginx/htpasswd-files
sudo htpasswd -c xxxx-htpasswd [username]
#(then enter password) |
...
3. Add the username/password to the ERGO shared folder in lastpass
4. Update nginx config:
edit /etc/nginx/sites-enabled,
...
copy
...
a
...
relevant
...
config
...
block
...
(update
...
permissions)
Code Block |
---|
sudo service nginx restart |
5. Test that it works
6. Add and commit the changes to /etc/nginx to git (no need to push, this is just a local git repo to track our changes to nginx config)