Git Product home page Git Product logo

udacity-fsnd-project6's Introduction

Linux Server Configuration

Sixth project from Udacity's Full-Stack Web Developer Nanodegree Program.

About

In this project I configured Linux server hosted on AWS and deployed my User Management App created in Project 4.

Server Info

  • 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.

High-Level Steps

  1. Create new user, generate public key and login into server
  2. Give new user permissions to sudo
  3. Update packages and install needed for the project
  4. Configure firewall
  5. Install git and clone app that will be deployed
  6. Ensure git folder is not accessible via web server
  7. Update code with correct paths
  8. Install PostgreSQL and add user/database
  9. Setup and configure virtual environment
  10. Configure virtual host with Amazon's servername
  11. In Google's App, update 'Authorized JavaScript origins' with Amazon's url
  12. Restart apache server and check if app is live

Installed Packages

  • apache2
  • git
  • libapache2-mod-wsgi
  • PostgreSQL
  • python3

Firewall Configuration

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

References

udacity-fsnd-project6's People

Contributors

dimak1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.