Sorry to be asking a user support question here. I didn't see a non-dev email list. If we should close the thread, just let me know.
I just attempted to do a sandstorm install, in a semi-unusual configuration: I want to have sandstorm bound to localhost, but then use Apache ProxyPass in front to expose it to the world.
When I surf to http://sandstorm.openhatch.org/ I am greeted with:
"Error looking up DNS TXT records for host 'localhost': queryTxt ENOTFOUND"
I couldn't find any info in the log files that would help me get past this.
Links to text files with further detail:
http://linode.openhatch.org/~paulproteus/tmp/sandstorm/
Thanks,
Asheesh.
Hi Sandstorm folks,
Sorry to be asking a user support question here. I didn't see a non-dev email list. If we should close the thread, just let me know.
I just attempted to do a sandstorm install, in a semi-unusual configuration: I want to have sandstorm bound to localhost, but then use Apache ProxyPass in front to expose it to the world.
When I surf to http://sandstorm.openhatch.org/ I am greeted with:
"Error looking up DNS TXT records for host 'localhost': queryTxt ENOTFOUND"
I couldn't find any info in the log files that would help me get past this.
Great, thank you!
> It looks like you set BASE_URL correctly. Make sure that Apache is actually proxying the Host header, rather than setting it to "localhost:6080". I know that nginx does not proxy the host header by default, so perhaps Apache doesn't either (even though this is clearly the wrong default).
Ah hah. I needed:
ProxyPreserveHost On
An install remark: you ask me to change the oauth2callback URL on the Google end. Why? Can't Sandstorm support the default URLs, so that my life is easier?
Now that I have that, I am trying to install MediaGoblin. I run into Sandstorm trying to make a MediaGoblin frame on sandstorm-7000.openhatch.org. But it should be on sandstorm-7000.sandstorm.openhatch.org, based on my config entries:
SERVER_USER=sandstorm
PORT=6080
MONGO_PORT=6081
BIND_IP=127.0.0.1
BASE_URL=https://sandstorm.openhatch.org
WILDCARD_PARENT_URL=https://sandstorm.openhatch.org
MAIL_URL=smtp://localhost:25
UPDATE_CHANNEL=dev
At least, that's what I meant to configure with WILDCARD_PARENT_URL.
Should I have specified something else?
Also, a "lint" (sanity-check) tool in the Sandstorm dashboard would make a world of a difference with this.
Regardless, huge thanks for the software and for the unbelievable helpfulness!
-- Asheesh.
An install remark: you ask me to change the oauth2callback URL on the Google end. Why? Can't Sandstorm support the default URLs, so that my life is easier?
Now that I have that, I am trying to install MediaGoblin. I run into Sandstorm trying to make a MediaGoblin frame on sandstorm-7000.openhatch.org. But it should be on sandstorm-7000.sandstorm.openhatch.org, based on my config entries:
On Mon, Aug 4, 2014 at 9:40 PM, <ash...@asheesh.org> wrote:An install remark: you ask me to change the oauth2callback URL on the Google end. Why? Can't Sandstorm support the default URLs, so that my life is easier?Sorry, that's not me, that's Meteor -- we just use their (very good) auth implementation. But I imagine the reasoning for not using the default is that they support half a dozen identity providers with the same code and I bet those providers do not agree on what the default ought to be. Because no one agrees on anything when it comes to OAuth.
Honestly, forcing users to get their own API key is kind of questionable in itself, though I'm not sure if there is a good alternative.
Now that I have that, I am trying to install MediaGoblin. I run into Sandstorm trying to make a MediaGoblin frame on sandstorm-7000.openhatch.org. But it should be on sandstorm-7000.sandstorm.openhatch.org, based on my config entries:
Sorry, this part is in flux. WILDCARD_PARENT_URL was introduced fairly recently, and there's a PR in-flight to switch over to having apps use it. The old method was to add "-7xxx" to the first component of the domain name.
Main thing that is holding up the PR is that I have to obtain proper certificates for *.demo.sandstorm.io and *.alpha.sandstorm.io before I can push a release with the change... and I probably won't have time for that until Thursday as I have a talk to give on Wednesday that I haven't even started writing yet! :/
Interesting, okay! Good to know. Always 7000-7999? I could just set up that list to be 1000 CNAME records!
Are you sure you *need* the proper wildcard certs? I just have CloudFlare terminate my HTTPS, which it then sends on to me. It does insist on sending the request on me over HTTPS, not HTTP.
When the request arrives at my server, CloudFlare finds my server's self-signed HTTPS lulz. CloudFlare doesn't seem to mind."Ta da, a properly set up wildcard cert."