Git Product home page Git Product logo

terraforming-rocket-chat's Introduction

Terraform

Automatically setting up a server and deploying web applications. #update Nv

  1. Create a private key "$ openssl genpkey -algorithm RSA - out *secret_key.*pem -pkeyopt rsa_keygen_bits:2048"

  2. Crete Public Key "$ openssl rsa -pubout -in secret_key.pem -out public_key.pem"

  3. Download terraform to your machine

  4. Move the terraform executable to either your usr/local/bin or variable Paths

  5. Navigate to access.tf and add your AWS access and secret key

  6. Navigate to variables.tf and add your public key and the names of any security group.

  7. In the terminal, run Terraform Plan and check the output

  8. In the terminal, run Terraform Apply

  9. Check AWS console to see if the instance has started.

  10. SSH into the instance using your private key

  11. Setting up the server through SSH.  echo 'http://the_new_ec2_instance.amazon.com proxy / localhost:3000{   websocket   transparent }' >/var/snap/rocketchat-server/current/Caddyfile

  12. sudo systemctl restart snap.rocketchat-server.rocketchat-caddy

  13. sudo systemctl status snap.rocketchat-server.rocketchat-caddy

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.