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
<ill_logic> nope
<ocdtrekkie> Is this like... code that's going to be public, or private app code?
<ill_logic> it'll be public when I'm done with it
<ill_logic> Okay cool. I just tried changing the Caddy port to the port of my app (and disabled my app for the moment) and Caddy served a file successfully. So, I'm well on my way.
<ill_logic> Maybe I hard coded that port somewhere
TimMc has joined #sandstorm
<ocdtrekkie> launcher.sh?
<ill_logic> No, I fooled myself.
<ocdtrekkie> pkgdef?
<ill_logic> I had the app running.
<ocdtrekkie> ah
<ill_logic> Caddy is supposed to be easier 😠
<ocdtrekkie> Is there a reason you need Caddy in front of it? Routing or something?
<ill_logic> I just want to use it instead of Nginx from now on since it's usually much easier.
<ill_logic> Oh you mean why I need anything.
<ill_logic> Because I want my app next to the powerbox proxy
<ocdtrekkie> I don't think you need to do that?
<ill_logic> The proxy requires that I include a js script in my app that connects to it through a websocket.
<ill_logic> So I need to expose one endpoint on the proxy. _sandstorm/websocket
<ill_logic> Anyway if there's a secret to this it'd be good for us to know. Caddy is getting popular.
<ocdtrekkie> oh yeah I see the Nginx thing on last time I set up the proxy and forgot about
<ocdtrekkie> I could maybe take a look and see if I see anything if you wanted, though I am obviously not an expert.
<ill_logic> I guess I'll just leave it be. Caddy would be nice if Sandstorm ever gets the resources to debug it.
<ill_logic> nginx it is
<ill_logic> Hmm. So nginix is going well. I'm getting feedback in the console that a powerbox request is being made, and the url shows up.
<ill_logic> I also see in my js console that a websocket is starting and restarting.
<ill_logic> But I don't get a popup asking me for permission or anything. Is that what's supposed to happen?
<ill_logic> "the url shows up" meaning, in the log about the pb request
<ocdtrekkie> You should get a powerbox request, yeah
<ill_logic> oh do I need to configure pkgdef for it
<ocdtrekkie> Nope
<ill_logic> hmm
<ocdtrekkie> Did you include the JS script in your app's head?
<ill_logic> yeah and it's telling me about the websocket connection
<ill_logic> at least that it's trying. maybe it's not succeeding
<ocdtrekkie> I integrated the proxy with a PHP app I never finished writing here: https://github.com/ocdtrekkie/xrf_packages/commits/main but the proxy worked, there's like three commits on March 31st that were mostly extracting Ian's TTRSS changes, plus of course, that I forgot to add the script (why I asked) until I picked it back up like a month later.
<ill_logic> is that a private repo? I can't see it
<ocdtrekkie> I think those four commits constitute a minimum viable proxy install, if that's a useful reference.
<ocdtrekkie> Hah, it is.
<ocdtrekkie> Cuz it's unfinished and broken.
<ocdtrekkie> I added you to it.
<ocdtrekkie> I need to add the proxy to a different app I am packaging, will do that soonish. But if I can do it, anyone can! :D
<ill_logic> I think the script is just failing to connect. I must be close. Probably nginx problem.
<ocdtrekkie> Is all the certificate nonsense set up right?
<ill_logic> yeah, I tried without that and got an error
<ill_logic> pretty sure the console is telling me that it can't make the ws connection
<ill_logic> oh I'm using sqlite3. do i want mysql for this?
<ocdtrekkie> It should with either. TTRSS (and my package) only use MySQL because they were already using MySQL anyways.
<ocdtrekkie> Sandstorm apps never "want" MySQL. MySQL is bad. :P
<ill_logic> I tried ttrss just to see what the powerbox interface looks like. And it doesn't work a second time.
<ill_logic> oh there it goes.
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
<ocdtrekkie> I fixed the remote CSS/font loading thing in Tube and pushed it to the live market.
<ocdtrekkie> (Turns out it was pulling in FontAwesome for a single icon, so I just inlined the SVG and called it good. :D
kentonv has quit [Ping timeout: 248 seconds]
kentonv has joined #sandstorm
<ill_logic> My problem was that I assumed Nginx configs handled precedence by order of listing.
<ill_logic> So I'm in!
<ill_logic> Thanks for the help (even if just helping think of ideas)
<ocdtrekkie> No problem, glad to hear you got it
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
<ocdtrekkie> I really like the grain log being in the UI. It's really handy.