Page MenuHomePhabricator

[keyserver] setup reverse proxy from keyserver router to frog hono server
ClosedPublic

Authored by will on Thu, Dec 5, 11:29 PM.
Tags
None
Referenced Files
F3522244: D14086.id46268.diff
Mon, Dec 23, 6:09 AM
F3522112: D14086.id46264.diff
Mon, Dec 23, 5:48 AM
F3516721: D14086.diff
Sun, Dec 22, 3:15 PM
Unknown Object (File)
Mon, Dec 16, 12:09 PM
Unknown Object (File)
Mon, Dec 16, 12:47 AM
Unknown Object (File)
Mon, Dec 16, 12:29 AM
Unknown Object (File)
Sun, Dec 15, 12:07 PM
Unknown Object (File)
Sun, Dec 15, 11:10 AM
Subscribers

Details

Summary

This implements the reverse proxy on the express server to point to the frog
hono server.

Depends on D13999

Test Plan

Verified by using ngrok to localhost 3000 and accessing the frog hono server.
Also confirmed was able to access frog hono server on my self-hosted keyserver

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will requested review of this revision.Thu, Dec 5, 11:47 PM
ashoat added inline comments.
keyserver/src/frog/frog.js
32 ↗(On Diff #46224)

What's this title field for?

This revision is now accepted and ready to land.Sat, Dec 7, 12:45 PM
keyserver/src/frog/frog.js
32 ↗(On Diff #46224)

title is a required parameter to the Frog constructor.

In a frame response, we end up setting the og:title tag as whatever we specify as title. I haven't actually seen this utilized when we render the frame on the validator or warpcast, so I don't believe the title matters too much

I'm actually going to replace the title with Comm Frame. The example frog docs has the following line:
"export const app = new Frog({ title: 'Frog Frame' })"
so I think we can think of it as the name of our frame

keyserver/src/frog/frog.js
32 ↗(On Diff #46224)

Changed title to "Comm Frame" in hello world diff: https://phab.comm.dev/D13947

I haven't actually seen this utilized when we render the frame on the validator or warpcast, so I don't believe the title matters too much

Sounds like you don't know how it's used. It would be good to figure out before landing this... I worry that, for instance, we'll end up with an application titled "Comm Frame" in some mini-app directory.

I think it would probably be better to just use "Comm" if you truly have no clue what this is or how it is used, even after spending an hour or so trying to dig up information.

I haven't actually seen this utilized when we render the frame on the validator or warpcast, so I don't believe the title matters too much

Sounds like you don't know how it's used. It would be good to figure out before landing this... I worry that, for instance, we'll end up with an application titled "Comm Frame" in some mini-app directory.

I think it would probably be better to just use "Comm" if you truly have no clue what this is or how it is used, even after spending an hour or so trying to dig up information.

Got it. Given that I already tried digging up information on how it's used and wasn't able to come up with much, I'll just rebase with the title as "Comm"