Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document the DNS/server config for the rooms sub-domaine names #186

Open
Lucas-C opened this issue Jan 7, 2016 · 6 comments
Open

Comments

@Lucas-C
Copy link
Collaborator

Lucas-C commented Jan 7, 2016

Hi,

I'm trying to setup an instance of soundtrack.io for me and some friends,
and I don't really know how to configure my server so that e.g. "coding.soundtrack.chezsoi.org" can be queried.
Could you please document this configuration ?

Thanks

@martindale
Copy link
Member

@Lucas-C
Copy link
Collaborator Author

Lucas-C commented Jan 8, 2016

Oh, ok. I thought this paragraph was only for tests, as it concerns only local hostname lookups.
I tried this but I still remain stuck with:

$ curl https://coding.soundtrack.chezsoi.org
curl: (6) Could not resolve host: coding.soundtrack.chezsoi.org

@martindale
Copy link
Member

It looks like you're deploying to a public webserver – you'll need to use a wildcard entry at the apex domain, I believe. I have not tested using a subdomain as the top-level site, as we have only ever deployed locally or on soundtrack.io.

I'm really excited that you're deploying a copy, by the way. I'd be very interested to discuss a peer-to-peer data-sharing arrangement, even ahead of Fabric and Maki. It'd be useful to attempt to synchronize / reconcile differences between our Tracks and Artists collections.

@Lucas-C
Copy link
Collaborator Author

Lucas-C commented Jan 10, 2016

you'll need to use a wildcard entry at the apex domain, I believe.

Ok, but to what path on the Node server should I route the requests ?? Can I route them directly to the root /, and the app will detect the room from the HTTP "Host" header ?

I only plan to use this with a close circle of friends, and we may prefer to keep our playlists separated. But I'd be happy to give you some feedback on this experiment :)
Also, what are Fabric & Maki ?

@martindale
Copy link
Member

Yes, the / route handles everything automatically, based on the Host field. Based on the changes you've made, everything should work as expected, but let me know if it doesn't! :)

edit: correction incoming, including other answers.

Maki is a full-stack framework for implementing web applications, like soundtrack, using resource-oriented design. It's a project that emerged directly as a result of soundtrack.io and how the product evolved over time, including what you see today – though the existing codebase does not use the latest version of Maki, we are in the process of a significant refactor that does.

I'm hoping to use Maki as a reference implementation of a new distributed application protocol that I have been working on for some time, which I'm calling Fabric. The protocol aims to eliminate the need for servers to host applications, replacing it with a peer-to-peer network of nodes that exchange data with one another on an on-demand basis.

This is why I'm so excited to have you running another instance! It gives us an opportunity to test a few of the hypotheses we have about synchronizing data without diminishing the value of a localized instance, including derived consensus on application state.

You might want to join the Maki Slack if any of this intrigues or interests you. We have a dedicated #soundtrack channel for discussion about this specific project, including our in-progress refactor.

@Lucas-C
Copy link
Collaborator Author

Lucas-C commented Jan 12, 2016

In case anyone else faces the same issue, here is the solution I found to the DNS wildcard problem, considering I'm using bind9 on my machine : simply add the following line into /etc/bind/db.chezsoi.org :

*.soundtrack      IN              CNAME           soundtrack.chezsoi.org.

And then: sudo service bind9 restart.

Your Maki + Fabric project sounds great ! I'd be happy to help, I'll trying to get a look at those during the week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants