The original documentation for the Item Catalog project is located here
Server Address: 18.218.247.187
DNS Name: http://ec2-18-218-247-187.us-east-2.compute.amazonaws.com
- Apache2
- finger
- Uncomplicated Firewall (ufw)
- Apache2 with mod-wsgi for Python3
- Postgreql Version 10
Amazon Lightsail Documentation
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04
Flask running in Virtual Environments on Apache
Flask Web Development, 2nd Edition by Miguel Grinberg, O'Reilly Media, Inc., 2018
SQL Alchemy Datanase Connections
SQL Alchemy Virtual environments with wsgi
Backend Databases and Applications
-
Create Ubuntu 16.04 instance on Amazon Lightsail
-
Update all packages installed
-
Removed unusued packages
-
Installed finger
-
Installed ufw and configured it with the following rules
To Action From 80/tcp ALLOW Anywhere 2200/tcp ALLOW Anywhere 123 ALLOW Anywhere 80/tcp (v6) ALLOW Anywhere (v6) 2200/tcp (v6) ALLOW Anywhere (v6) 123 (v6) ALLOW Anywhere (v6) -
Modified the Lightsail firewall to match the machine firewall rules
-
Configured Apache to serve wsgi applications
-
Installed Postgres
-
Installed Git
-
Created the virtual environment to run the application and installed the python packages specified in the 'requirements.txt' file
-
created a 'catalog' user
-
cloned the git repository into the /home/catalog/public_wsgi directory
-
Configured the Apache default VirtualHost to serve the catalog app within the virtual environment
-
Created and installed rsa keys for users: jjyoung and grader
-
Modified sshd to disallow password login and allow only key-based authentication
-
Enabled 'sudo' for designated users
-
Configured Automatic Updates