Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 29 12:53
  • Nov 26 21:26

    michaeldwan on firecracker2

    firecracker support Clean packages Secrets and 2 more (compare)

  • Nov 26 16:47
    michaeldwan edited #261
  • Nov 26 16:47
    michaeldwan edited #261
  • Nov 26 16:47
    michaeldwan edited #261
  • Nov 23 19:22
    michaeldwan edited #261
  • Nov 23 19:22
    michaeldwan edited #261
  • Nov 21 20:47

    michaeldwan on master

    chore(release): v0.55.0-pre.0 (compare)

  • Nov 21 20:47

    michaeldwan on v0.55.0-pre.0

    (compare)

  • Nov 21 20:40
    dependabot[bot] synchronize #257
  • Nov 21 20:40

    dependabot[bot] on npm_and_yarn

    chore(deps): bump lodash from 4… (compare)

  • Nov 21 20:40
    dependabot[bot] edited #257
  • Nov 21 20:40

    dependabot[bot] on npm_and_yarn

    (compare)

  • Nov 21 20:40
    dependabot[bot] closed #258
  • Nov 21 20:40
    dependabot[bot] edited #258
  • Nov 21 20:39
    dependabot[bot] edited #258
  • Nov 21 20:39
    dependabot[bot] edited #257
  • Nov 21 20:39

    michaeldwan on master

    node 12 (#263) * upgrade packa… (compare)

  • Nov 21 20:39
    michaeldwan closed #263
  • Nov 21 20:29
    michaeldwan synchronize #263
Bartek Iwańczuk
@bartlomieju
yeah, old versions of std lib are broken
Kurt Mackey
@mrkurt
hrm, that's probably a similar issue
Bartek Iwańczuk
@bartlomieju
there was registry rewrite not long ago
Kurt Mackey
@mrkurt
flyctl status will show you if it actually deployed or not
ah nice, I'll fix it up
Bartek Iwańczuk
@bartlomieju
yeah, it was deployed but nothing happens
but that's because of bad config
Michael Dwan
@michaeldwan
@bartlomieju flyctl apps create should be fixed now, sorry about that!
Bartek Iwańczuk
@bartlomieju
yeah, Deno doc could use some love
wow, thx for quick fix, reinstall will work?
Kurt Mackey
@mrkurt
you probably don't even need to reinstall!
Michael Dwan
@michaeldwan
yeah it was a backend fix
Kurt Mackey
@mrkurt
the api was sending some garbage serialization
Bartek Iwańczuk
@bartlomieju
oh cool, let me try
Michael Dwan
@michaeldwan
you can create the fly.toml file that would have been returned with flyctl apps init-config <APP-NAME>
Bartek Iwańczuk
@bartlomieju
still no luck
Kurt Mackey
@mrkurt
same error?
Bartek Iwańczuk
@bartlomieju
yes
I deployed it https://still-dew-439.fly.dev/ nice!
Kurt Mackey
@mrkurt
heh, my flyctl was one version behind and working fine
0.0.68 is not happy
0/3
Kurt Mackey
@mrkurt
@bartlomieju ok it's working now, but flyctl apps init-config will blow away the [builder] config section
(that's an outstanding bug we expect to fix later)
Bartek Iwańczuk
@bartlomieju
yeah, it's working :+1:
Kurt Mackey
@mrkurt
@bartlomieju do you like server.ts for a default entry point or do you think we should use something else?
it would be reasonably easy to detect one of several options but I avoided that in favor of an explicit config thing for now
Bartek Iwańczuk
@bartlomieju
in Deno codebase we tend to use mod.ts
but server.ts seems reasonable
explicit config is fine :+1:
Bartek Iwańczuk
@bartlomieju
is there a way for flyctl to pickup fly.toml file without app name and create new app?
Kurt Mackey
@mrkurt
do you mean basically creating a new app from an existing fly.toml with a different name?
if you remove app name from fly.toml and pass -a <app> around in the cli you can use it with lots of different apps
we do that for staging/prod apps
Bartek Iwańczuk
@bartlomieju
creating new app from "template" that has fly.toml (without app name)
I see
Kurt Mackey
@mrkurt
ah no not yet!
we want to make the --builder thing able to generate a fly.toml though
so you could do flyctl apps create --builder github.com/org/project/ for example, and get a proper fly config
Bartek Iwańczuk
@bartlomieju
nice
Noah Gray
@NoahGray_gitlab
is there an API for "sites" and wormholes? I know it's a (thankfully still offered) "deprecated" feature, but I would consider adding it's features to flyctl myself if there's an API. I love using it for load balancing and https upgrading of Kubernetes deployments. I've even used it to expose deployments that I then used within FLY edge apps.
Jerome Gravel-Niquet
@jeromegn
@NoahGray_gitlab there is no such API unfortunately. The product never grew to that point (sorry for the delayed response). There are possibly going to be alternatives to wormhole that will make sense for your use case in the new landscape. For instance you could host wormhole in our new app platform and use its API to add and remove endpoints. Of course it's much more involved than using our old platform.
Noah Gray
@NoahGray_gitlab
@jeromegn That's OK, I'd love to host wormhole :). I was telling Kurt you should develop your own Kubernetes version where adding a "LoadBalancer" would simply add a wormhole container to the deployment. And adding a CDN to an app would use Fly edge services that you could configure right in the deployment .yaml file. Seems a great way to utilize all your tech and make a unique Kubernetes offering.
Todd Humphrey
@todda00
trying to use http-cache and ignore the cookie header altogether, nothing is caching at all because cookies are being sent in, keep getting Cookie headers are not supported in http-cache
Todd Humphrey
@todda00

got past the cookie issue by removing it in my own middleware, but now the response from my origin is including the Vary header, so getting Vary headers are not supported in http-cache

I can't figure out how to manipulate the request and response so httpCache works.

const dropCookiesMiddleware = (fetch) => {
  return async function dropCookies(req, init){
    req.headers.delete("Cookie");
    const res = await fetch(req, init);
    return res;
  }
}

const mw = pipeline(
  middleware.httpsUpgrader,
  dropCookiesMiddleware,
  middleware.httpCache,
)
Kurt Mackey
@mrkurt
@todda00 for that level of logic, you're probably better off using the responseCache directly
since you're already dropping the cookie, you can just responseCache.set(key, resp)
also superfly/cdn became superfly/edge so it's the same package
the http cache middleware is limited and tries to prevent people from shooting themselves in the foot