ChanServ changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things Sandstorm and Cap'n Proto. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev | Channel logs available at https://libera.irclog.whitequark.org/sandstorm
koo6 has quit [Ping timeout: 246 seconds]
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
P4ndamonium has joined #sandstorm
<P4ndamonium> Hey all is anyone available for some troubleshooting help?
<isd> P4ndamonium: for a moment. What's up?
<P4ndamonium> I just got a new sandstorm instance set up on a subdomain and it looks like I'm having wildcard issues in some way
<P4ndamonium> no wildcard error, wildcard DNS set up with proxy pass rules (in apache) to forward accordingly
<P4ndamonium> but all my grain tiles are trying to load using ${domain}:${internal_port}
<P4ndamonium> where they should just be trying to use port 80
<P4ndamonium> er 443, 80 rewrites to https
<isd> What's your sandstorm.conf look like?
<isd> Also, do you have Sandstorm behind a reverse proxy, or is it expoed directly to the network? sandcats or your own DNS?
<P4ndamonium> Sandstorm is behind a reverse proxy with Apache on the front end, I am using a subdomain of my own
<P4ndamonium> sorry pastebin isn't agreeing with me so I'll post raw conf here:
<P4ndamonium> SERVER_USER=sandstorm
<P4ndamonium> PORT=6080
<P4ndamonium> MONGO_PORT=6081
<P4ndamonium> BIND_IP=127.0.0.1
<P4ndamonium> BASE_URL=https://sandstorm.[domain]
<P4ndamonium> WILDCARD_HOST=*.sandstorm.[domain]:6080
<P4ndamonium> UPDATE_CHANNEL=dev
<P4ndamonium> ALLOW_DEV_ACCOUNTS=false
<P4ndamonium> SMTP_LISTEN_PORT=30025
<P4ndamonium> SANDCATS_BASE_DOMAIN=sandcats.io
<P4ndamonium> I thinnk I see the issue now actually...
<isd> The obvious thing that jumps out at me is the presence of SANDCATSBASEDOMAIN
<P4ndamonium> Yea it was actually the wildcard host
<P4ndamonium> wildcard host was manually writing all my asset URLs to include the internal port
<isd> Aha. That would do it.
<isd> Glad I could rubber ducker for you.
<isd> *rubber duck
<P4ndamonium> Much appreciated! Now just to battle the wildcard cert on LE
<ocdtrekkie> IIRC basically all sandstorm.conf URL settings should be as a user would see it. Aka, if you put :6080 somewhere, that's what your user will navigate to. Whereas the actual port behind any proxies is set by HTTP_PORT and the like.
<P4ndamonium> I'm fighting hard with this wildcard cert now
<P4ndamonium> i think it's the last piece but I can't get it to work
<P4ndamonium> ah I see, nested subdomains aren't covered by wild card
<P4ndamonium> how unfortunate
<ocdtrekkie> You can cheat on that a bit.
<ocdtrekkie> Sandstorm supports something like... sandstorm-*.domain format if you want.
<P4ndamonium> can I do that in the wildcard domain directive of the conf file?
<ocdtrekkie> I believe so, yes.
<ocdtrekkie> "So, for example, alpha-*.sandstorm.io is the WILDCARD_HOST for Sandstorm Alpha, while *.oasis.sandstorm.io is the WILDCARD_HOST for Oasis"
<ocdtrekkie> It is noted some DNS servers don't like wildcards of that format though, many do just want *.
<P4ndamonium> Yea mine doesn't seem to enjoy that too much
<P4ndamonium> Guess I'll wild card the entirety of it and have apache parse the domains, not a big deal but lets I suppose that opens you to a DDoS of sorts
<P4ndamonium> subdomain fuzzing/brute forcing could easily overwhelm a single server that way
<P4ndamonium> well that seems to be working just need to wait for DNS to propagate now x.x
<P4ndamonium> thanks for the help!
<P4ndamonium> and after all that I get 404s, well I'll have to fight with it more tomorrow! Was fun, I'll probably be back later :)
P4ndamonium has quit [Quit: Connection closed]
koo6 has joined #sandstorm
koo6 has quit [Read error: Connection reset by peer]
xet7 has quit [Remote host closed the connection]
xet7 has joined #sandstorm
xet7 has quit [Read error: Connection reset by peer]
xet7 has joined #sandstorm
koo6 has joined #sandstorm
koo6 has quit [Client Quit]
<TimMc> I wonder if we could make some kind of config linter.
<ocdtrekkie> I think the challenge is that a significant number of configurations are total valid for different environments.
<ocdtrekkie> We'd need to know a lot about people's proxies and firewalls and DNS servers and such.
<TimMc> Yeah, it would need both external and internal network viewpoints to help at all.
<TimMc> but would also have total blindspots when it comes to reverse proxies...
<isd> wildcard host and base url having different ports is a red flag though.
<isd> It might make sense to issue a warning in that case.
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
kentonv has quit [Quit: Leaving]
kentonv has joined #sandstorm
stdedos has joined #sandstorm
stdedos has left #sandstorm [#sandstorm]
<xet7> Wekan is 72.6% critical (green), Sandstorm is 64.2% critical (yellow)
xet7 has quit [Ping timeout: 246 seconds]
xet7 has joined #sandstorm