• Acejam@alien.topB
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Nice article! A few comments:

    • Kubo contains state (config file and blockstore) and thus, it should really be a StatefulSet, instead of a Deployment.
    • Consider adding the proxy_cache directive to nginx. IPFS content is all static, so there’s no reason to go back to Kubo for serving static files when nginx can do this significantly faster. In your current config, nginx is terminating TLS and passing through everything else.
    • zquestz@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thanks for the tips. Will look into improving my setup.

      My gateway is super locked down. I whitelist specific routes for my content. I tried to do a public gateway but it was far too costly. 😃

      The proxy_cache is a great idea, probably do that right away.

      • Acejam@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Awesome! One idea: If you are pinning content on this node too, look into using the Kubo NoFetch parameter. This will instruct Kubo to only serve content it has pinned via the gateway port.

        • zquestz@alien.topOPB
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Good call, NoFetch worked perfectly.

          Can’t say that about the proxy_cache, when I enable it, nothing gets served. Unfortunately the docs are either not quite right, or old.

          Any chance you have some up to date docs on adding it?