Coder Social home page Coder Social logo

nitter-on-ec2-with-terraform's Introduction

nitter instance on AWS EC2

This terraform setup creates a nitter deployment on a simple EC2 instance behind a network load balancer.

┌────────────────────┐
│  network load      │
│  balancer    (FQDN)│
└─────────┬──────────┘
          │port 8080  
┌─────────▼──────────┐
│ autoscaling group  │
│  ┌──────────────┐  │
│  │ EC2 Instance │  │
│  │              │  │
│  │   "nitter"   │  │
│  └──────────────┘  │
│                    │
└────────────────────┘

Usage

You can configure the instance type and the username later needed to access the nitter instance. See variables.tf.

The following is copied from sekai-soft/guide-nitter-self-hosting:

  1. Create a throw away twitter account (here) without MFA enabled.

  2. After that you will need actual nitter auth. In this directory execute:

    git clone --depth 1 https://github.com/sekai-soft/guide-nitter-self-hosting 
    cd guide-nitter-self-hosting
    docker compose run --build nitter-auth
  3. Execute the last "echo" line as advised. The authentication will be read by the terraform setup.

  4. To set variables create variables.auto.tfvars.

  5. Do the usual terraform init and terraform apply you will get the following output:

basic-auth-password = "some-basic-authpassword"
basic-auth-username = "nitter"
lib-redirect-twitter-url = <<EOT
USAGE WITH LIB-REDIRECT CHROME EXTENSION:
-----------------------------------------
Install https://libredirect.github.io/download.html
Open the options of the extension and select "Twitter" on the left side.
Click on the input field under "Add own instance" and enter:

http://nitter:some-basic-authpassword@nitter-123456789.elb.eu-central-1.amazonaws.com:8080

EOT

You can now access your private nitter instance as http://nitter:some-basic-authpassword@nitter-123456789.elb.eu-central-1.amazonaws.com:8080

nitter-on-ec2-with-terraform's People

Contributors

fschumacher-tef avatar thenoseman avatar

Watchers

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