Enterprise solution

On-prem offering that include advanced security, monitoring, performance features and more.

Enterprise solution

On-prem offering that include advanced security, monitoring, performance features and more.

Enterprise solution

On-prem offering that include advanced security, monitoring, performance features and more.

Setup with AWS

Setup with AWS

Welcome to the on-premise installation instructions for P0 on AWS. Follow this guide to get set up with your own version of P0.

Step 1: Set up a computer
  1. Go to AWS Console: https://console.aws.amazon.com/console/home

  2. Login

  3. Select the Region where your database and API server are

  4. Go to EC2 —> Instances —> Launch New Instance

  5. Select “Browse more AMIs”

  6. Click on “Community AMIs”

  7. Search for p0.Inc-OnPremise

  1. Select p0.Inc-OnPremise

  2. Select t2.medium as Instance type

  3. Take note of the key pair (or create a new one). You will need this to SSH into the box later.

  4. In Network settings select

    1. Allow SSH traffic from Anywhere

    2. Allow https traffic from the internet

    3. Allow http traffic from the internet

  5. Go to Configure Storage

    1. Insert 40 Gib

  6. Then press Launch Instance

  7. Once the instance has launched, take a note of the Public IPv4 Address. You will need this for the final step.

Step 2: Connect your domain

This will be where your version of p0 will be hosted. Pick something clear like - p0.<YOUR_DOMAIN>.com

  1. Take the IP address of the computer you just created

  2. Go to your DNS provider (GoDaddy, NameCheap, Route53 etc)

  3. You should typically see a table like the below, where you will add an A Record and the Value is the IP address of the computer you just created.

    1. Name the A Record something like p0. The full form will then be p0.<YOUR_DOMAIN>.com

    2. Note down the domain name. You will need this for the final step.

  4. If you want more guidance, go to the following resources, depending on your DNS provider

    1. Godaddy

    2. NameCheap

    3. Route53

    4. Azure DNS

Step 3.a: Create your own Github application

You need to create a Github application that allows access to your repositories. This will be an application *you* control to ensure code does not leave your cloud.

Note: You need to be an Owner of the organization

Note: Select the protocol for your application. If you are using it for internal purposes, select HTTP, else select HTTPS.

This will take you to your Github organization to finish the process of creating the Github application

Step 3.b: Generate private key for Github application

You need to create a Github application that allows access to your repositories. This will be an application *you* control to ensure code does not leave your cloud. Please take not of your Github application ID

Step 4: Download & run scripts
  1. You will have to SCP the github .pem file which you downloaded onto the computer you set up in step 2 using the SSH key you created in step 1 (these are two different .pem files)

    • scp -i /path/to/private-key.pem /path/to/local/github.pem ubuntu@public_ip_from_step_1:/home/ubuntu/

  2. SSH into your computer, using the key pair from Step 3

    • ssh -i "/path/to/private-key.pem" ubuntu@public_ip_from_step_1

    • You might need to run this with sudo - sudo ssh -i "/path/to/private-key.pem" ubuntu@public_ip_from_step_1

  3. cd p0Setup

  4. Run the install script, and fill in all of the information when prompted

    • ./install.sh

    • Side note: You might have to run this with sudo

  5. You will be prompted for your

    • Domain (from Step-2)

    • Github Application ID - from the Github Application you created

    • Github Application Name - from the Github Application you created

    • Github Private Key, which you can enter like this /home/ubuntu/your_github_key.pem

  6. Wait for the script to run (should take 30 seconds)

  7. This is what it should look like once the installation has succeeded

  1. If there is an error, it is likely because of your domain - simply run the install script again, it should work.

  2. Then visit your domain and login!

Update Installation
In order to reset your installation you will have to complete two steps
  1. Reset your Github application
  2. Reset P0
Step 1: Reset your Github Installation
  1. You need to uninstall the Github application as your first step for a complete reset. Please fill in the below details in order to successfully uninstall the application.
  2. Press Uninstall app in github button and go to Configure and Uninstall

Once there, click on “Uninstall” at the bottom as shown in the screenshot below.

Reset P0
Reset P0
  1. SSH into your on-premise server - ssh -i "/path/to/private-key.pem" ubuntu@public_ip_from_step1

  2. You might need to run this with sudo - sudo ssh -i "/path/to/private-key.pem" ubuntu@public_ip_from_step-1

  3. Run the following steps

    1. cd p0Setup

    2. wget https://p0-public-bucket.s3.ap-south-1.amazonaws.com/resetSystems.sh

    3. sudo sh resetSystems.sh

    4. Say yes - for this prompt while running the script - Existing data found for testing-p0-reset.tech.p0.inc. Continue and replace existing certificate? (y/N) y

  4. Go to your domain

Update your Github Installation
  1. Please fill in the below details in order to successfully update your Github application.
  2. Press Update application button to open the Github app settings

Note: You need to be an Owner of the organization

Once there, enable the Redirect on update option, and click Save changes.

Contact us

Contact us

If you are facing any trouble setting up your on-prem application, reach out to us at contact@p0.inc

© 2024 p

0

. All rights reserved.

/

© 2024 p

0

. All rights reserved.

/

© 2024 p

0

. All rights reserved.