This is related to the catalog local server project, completed earlier in the course. The aim is to host the catalog app on Amazon's AWS Lightsail virtual private server project, configure the code AND change the database storing the information to a Postgresql database.
The code for the origional catalog app project can be seen on my github here
Created by Doug Wight - dcfwight@gmail.com
Apache webserver using Flask framework and bootstrap formatting.
Data is saved to a Postgresql database on the server.
- Root access disabled
- Postgresql user called 'catalog' added, with password 'REDACTED'
- An additional superuser called 'grader' was added to allow Udacity grader to access the server. This user has since been REMOVED
- Password access to the server disabled
- Access limited to private rsa key authentication
- Enabled firewall to restrict ports to 2200 for ssh, 80 for webservice, 123 for NTP. All others ports have been blocked.
- The ssh port is 2200 - a non-default port. The normal port (22) has been disabled.
- Access the server by using the private rsa key provided
- E.g. enter the following command in a terminal to gain access to the ubuntu server:
ssh ubuntu@34.21.100.161 -p 2200 -i ~PATH-TO-SAVED-PRIVATE-RSA-KEY
Many!!! Particularly Udacity forum posts and links from there. Some of these included:
Programming knowledge youtube link on configuring Postgresql
Digital Ocean set-up tutorial on apache and python for ubuntu