Sixth project from Udacity's Full-Stack Web Developer Nanodegree Program.
In this project I configured Linux server hosted on AWS and deployed my User Management App created in Project 4.
- Virtual Server: Amazon Lightsail
- Public IP: 34.215.251.86
- SSH Port: 2200
- Live no more...
NOTE: Below is summary of steps taken to configure the server. Check References section for details.
- Create new user, generate public key and login into server
- Give new user permissions to sudo
- Update packages and install needed for the project
- Configure firewall
- Install git and clone app that will be deployed
- Ensure git folder is not accessible via web server
- Update code with correct paths
- Install PostgreSQL and add user/database
- Setup and configure virtual environment
- Configure virtual host with Amazon's servername
- In Google's App, update 'Authorized JavaScript origins' with Amazon's url
- Restart apache server and check if app is live
- apache2
- git
- libapache2-mod-wsgi
- PostgreSQL
- python3
Allow incoming connections for SSH (Port 2200), HTTP (Port 80), and NTP (Port 123)
$ sudo ufw allow 2200/tcp
$ sudo ufw allow 80/tcp
$ sudo ufw allow 123/udp
$ sudo ufw enable
- Add and Delete Users from DigitalOcean
- Update Packages from Ubuntu
- Initial Server Setup from DigitalOcean
- Setup and deploy flask app from DigitalOcean