Skip to content

jjyoung1/item_catalog

Repository files navigation

Linux Server Configuration Project

Project Documentation

The original documentation for the Item Catalog project is located here

Site Information

Server Address: 18.218.247.187

DNS Name: http://ec2-18-218-247-187.us-east-2.compute.amazonaws.com

Software Requirements

Server Packages

  • Apache2
  • finger
  • Uncomplicated Firewall (ufw)
  • Apache2 with mod-wsgi for Python3
  • Postgreql Version 10

References

Amazon Lightsail Documentation

Digital Ocean

https://www.digitalocean.com/community/tutorials/how-to-run-django-with-mod_wsgi-and-apache-with-a-virtualenv-python-environment-on-a-debian-vps

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04

Flask

Flask running in Virtual Environments on Apache

Flask Web Development, 2nd Edition by Miguel Grinberg, O'Reilly Media, Inc., 2018

Postgres

Postgres Documentation

SQLAlchemy

SQL Alchemy Datanase Connections

SQL Alchemy Virtual environments with wsgi

Udacity

Linux Server Configuration

Backend Databases and Applications

Ubuntu

Automatic Updates

Server Configuration

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published