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
prologic has joined #sandstorm
<prologic> I'm I've just used vagrant-spa with the gaoling stack to create a new package for my app and obviously the default aren't quite right -- kind of expect that
<prologic> What do I need to custom here?
<prologic> I've been following the tutorial but the tutorial assumes you're following the PHP example which I'm not so :D
<prologic> The .sandstorm/launcher.sh points to something like exec /opt/app/app
<prologic> Where/How does /opt/app/app get in here?
<prologic> Hmm there's also a build.sh maybe that needs to be customised too
<prologic> Okay okay I see...
<prologic> You guys have done a nice job here 👌
<prologic> # runtime/cgo
<prologic> _cgo_export.c:3:10: fatal error: stdlib.h: No such file or directory
<prologic> ^~~~~~~~~~
<prologic> #include <stdlib.h>
<prologic> compilation terminated.
<prologic> Ooops :/
<prologic> Okay I'm almost working
<prologic> Q: How do I determine the notion of a "dev" environment here for Sandstorm?
<prologic> I need to distinguish between "dev" and "prod" modes essentially
<prologic> Oooh boi this is hard
<prologic> I'm not actually sure how to setup sane defaults for my app here
<prologic> Help? :D
<ocdtrekkie> prologic! Hey!
<prologic> Hey!
<prologic> I also just discovered this:
<prologic> When a Sandstorm grain is running, Sandstorm uses a different URL for each session. This means even for a single grain, each different user visiting the site will have a different base URL. There isn't a stable URL like https://myapp.me.sandcats.io/ for an app to use.
<prologic> I kind of need a public facing url for the app for my app to work at all
<prologic> I hope this can be done?
<ocdtrekkie> Give me a couple minutes to look at the backlog once I get inside.
<prologic> Without some way of configuring the app's public facing view, this won't work :/
<prologic> Sure no problems!
<prologic> For context; I'm attempting to package Yarn.social (https://yarn.social)
<prologic> We already support Docker, Synology NAS, precompiled binaries and build from source
<prologic> I'm also having trouble figuring out how to a) generate some static secrets (JWT keys) and use those for the Grain/startup?
<prologic> Normally we usually recommend to run something like: https://gist.github.com/prologic/64725ae334b143dbd3b2fcd51fd137ca
<prologic> And then insert those secrets via env var
<ocdtrekkie> So officially the only intended way to have a grain put out a website directly is static publishing. We also have an unsupported hack for displaying a live grain at an arbitrary subdomain, but it uses invisible iframes and such and depending what you need it might or might not be a good idea.
<ocdtrekkie> Generally speaking, Sandstorm is more analogous in design to like Google Drive with document types written in all different languages, than a web hosting platform.
<ocdtrekkie> Is Twtxt now Yarn.social?
<prologic> Oh 🤦‍♂️
<prologic> That's a bit disappointing to hear
<prologic> This won't work at all then :/
<ocdtrekkie> I feel like twtxt could actually work really well, though, if you just need the static publishing public.
<ocdtrekkie> I recall explicitly discussing it as an idea for how we could get social working on Sandstorm.
<prologic> [12:56:27] <ocdtrekkie> Is Twtxt now Yarn.social? <-- no. but Yarn.social uses Twtxt as it's primary format for feeds with extensions we developed along the way; so yes if you want to think of Twtxt as dead (which it largely is) and Yarn.social is it's new replacement, fine :D
<prologic> Not strictly true, but more or less ;)
<prologic> How difficult is it for you guys to make this work in a future version of Sandstorm?
<ocdtrekkie> So, what I imagine could work should work with what Sandstorm does now.
<prologic> [12:55:56] <ocdtrekkie> Generally speaking, Sandstorm is more analogous in design to like Google Drive with document types written in all different languages, than a web hosting platform. <-- that's a bit limiting in scope no? I mean sure you can do a lot of things with 'static" hosting, but I feel this is a bit counter to what I _thought_ Sandstorm was trying to be some years ago when I first came across it
<prologic> At least if this is the intention it should not be "marketed" as a "hosting platform" and sit alongside things like "Why you not host" :D
<prologic> (Just honest feedback so far)
<prologic> Man I'm find it hard to read your replies because your nick is highlighted the same color as mine
<prologic> Damnit :D
<prologic> Ok ayokay so yes we actually can do that here
<ocdtrekkie> No worries. I think there's probably some distinctions in selfhosting people haven't made before. Hosting for public access has different considerations than hosting for your own use, of which Sandstorm's moxe excels.
<prologic> But one of us will have to build an entirely different thing altogether
<prologic> For Sandstorm
<prologic> That is a version of a yarn.social pod just for Sandstorm
<prologic> At a minimum we need only a handful of things
<prologic> A /twtxt.txt file to be publicly visible to the web
<prologic> A /avatar.png to also be publicly visible to the web
<ocdtrekkie> But I think if you put your social client inside a Sandstorm grain, and every time you post, it publishes the txt and png, that should be compatible.
<prologic> And some kind of "client"
<prologic> But....
<prologic> Hold up
<prologic> There is no reason we can't expose the required "files" anyway through Sandstorm's static hosting
<prologic> I thinkI_ with a little work I can make this happen
<prologic> Help me out here with what needs to changed on the yarnd backend to support this and I'll make it work :)
<prologic> Because yarnd is _also_ the client here and that _should_ be available via a sandstorm user
<ocdtrekkie> Yeah, that's one of the concerns. There's one other one I should point you to up front.
<prologic> It's just the public facing parts that need to be public
<ocdtrekkie> Right
<prologic> Can we jump on a video call mate?
<prologic> I really am getting bad RSI in my old age
<prologic> :/
<ocdtrekkie> Yeah, give me ten minutes.
<ocdtrekkie> Actually five
<prologic> No problems
<prologic> https://meet.mills.io/call/sandstorm_yarn_social when you're ready 👌
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
xet7 has joined #sandstorm
prologic has left #sandstorm [Textual IRC Client: www.textualapp.com]
prologic has joined #sandstorm
<prologic> Actually... I have an idea...
<prologic> Is anyone here willing to and want to earn a bit of part-time / pocket-money cash for xmas? :D
<prologic> I have a very small project for you :D
<prologic> Get a Yarn.social pod working with Sandstorm -- Experience with Go _may_ (probably definitely) required
<prologic> As well as Sandstorm internals of course (Web Publishing)
<prologic> And we may need to implement a "Setup Wizard" for pods (what we call Yarn.social instances) to help do things like "What domain will feeds be published as?" And maybe a few other small cid bits)
xet7 has quit [Quit: Leaving]
abliss[m] has quit [Quit: You have been kicked for being idle]
prologic has quit [Ping timeout: 252 seconds]
prologic has joined #sandstorm
xet7 has joined #sandstorm
xet7 has quit [Remote host closed the connection]
xet7 has joined #sandstorm
prologic has quit [Quit: ZNC - https://znc.in]
prologic has joined #sandstorm
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
<isd> prologic: I might be interested. For this I'd offer the good-FOSS discount rate, which is $90 USD/hr.
<prologic> WOW That's a discount? :D
<prologic> LOL
<prologic> Can you do it in an hour? ;)
<isd> I know rates are higher in the US than elsewhere, and contractors are expensive.
<prologic> Not just that, our Aussie dollar is shit :D
<isd> Fair enough :P. Don't hesitate to tap me for advice/questions.
<prologic> How long do you think it'll take you
<prologic> I'm aware you're not familiar with our codebase
<isd> But yeah, my standard corprate rate is $120/hr
<prologic> Yeah mine is too ;)
<isd> More than an hour. I can poke around a bit and get back to you with an estimate.
<prologic> If you could that'd be great
<prologic> I could more seriously consider your offer then :D
<isd> Ok. Probably won't get to it today, but maybe tomorrow.
<ocdtrekkie> I was going to ask if you have a Go-friendly way of doing getPublicId, Ian
<isd> I mean, I'll probably use the go-capnp implementation? Was this a point of confusion when you spoke last night?
<ocdtrekkie> I was just curious if we needed the little C++ app or not.
<isd> No, we should just be able to do it directly in Go.
<ocdtrekkie> Awesome.
<isd> One of these days I want to make it possible to ask for subdomains via the powerbox, so we can skip the whole DNS dance that you need to do now.
<isd> But I have mentioned this before I think.
<isd> hm, do we have an open issue about that...