Comments (5)
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.
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.
@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.
Super big thank you @rosstc for that extensive answer!
from townsquare.
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)
- Feature Request: Add players by comma separated list HOT 1
- Bug: Mark for Execution remains when player swapped HOT 4
- Feature Request: Changeable Travelers (Travellers) HOT 1
- Bug: NODE_ENV=development node index.js error HOT 1
- Bug: Character selection text layers improperly resize after mouseaway (Chrome only) HOT 1
- Damsel First Night HOT 2
- Bug: the backend server aways error and stop run HOT 1
- Bug: Image inconsistencies HOT 1
- Feature Request: we need chinese ,thx. HOT 1
- Feature Request: a feature idea. HOT 1
- Bug: Layouts are unreadable/clipped on narrow screens HOT 1
- Feature Request: Whether it's a way to customize a new role? HOT 1
- Request: remove mark for execution after player dies HOT 2
- Bug: Majority should be calculated without tavellers HOT 1
- Bug: Philosopher night reminder text error HOT 1
- Feature Request: Blue is too close to cyan HOT 3
- Bug: New Characters HOT 1
- Bug: Video background stops playing after reload HOT 1
- Bug: Players cant join in the the lobby.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from townsquare.