Coder Social home page Coder Social logo

Server hosting about townsquare HOT 5 CLOSED

rosstc avatar rosstc commented on July 18, 2024
Server hosting

from townsquare.

Comments (5)

rosstc avatar rosstc commented on July 18, 2024 1

Hey @RobhJoh, I did manage to get it working yes. Go check out my groups fork for the front end hosting stuff. The backend part I haven't done as infra as code yet, but how I got it working in AWS was using an Amazon Linux 2 EC2 instance (t2.micro) running in a public subnet with a public IP.

I created a Route53 zone linked to a custom DNS I purchased and created an A record that points to the public IP of the EC2. The EC2 allows 8080, 80, 443 and 8081 from anywhere inbound and anything out. From there I just copied the source code to the machine and have a service that run the /server stuff (node index.js) in the background, which serves the app on port 8080.

To get it to work properly though I had to go through the certificate stuff as referenced in the README. To do this I get free SSL certs through Let's Encrypt installed via certbot. To get the cert I use certbot certonly --standalone which spins up a temporary webserver to validate the domain etc. I copy those certs and rename them as appropriate in the /server directory and it works

from townsquare.

bra1n avatar bra1n commented on July 18, 2024

Hey there,
did you read the README here? https://github.com/bra1n/townsquare/tree/develop/server#readme
What kind of error messages are you seeing when trying to connect to the socket? It sounds like the configuration might be wrong or the code not adjusted for your self-hosted backend.

from townsquare.

RobhJoh avatar RobhJoh commented on July 18, 2024

@rosstc Have you gotten it to work? If so, would you like to share how? As I have made a retheming of BotC I need to host this myself.

from townsquare.

RobhJoh avatar RobhJoh commented on July 18, 2024

Super big thank you @rosstc for that extensive answer!

from townsquare.

rosstc avatar rosstc commented on July 18, 2024

Given the answer above and the fact I got it working, I might close this. If anyone needs further info in future you can contact me. Thanks

from townsquare.

Related Issues (20)

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.