https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • u

    ucinteractivesl

    03/01/2023, 3:15 PM
    We are using peertube by the way
  • k

    kev-ac

    03/01/2023, 3:17 PM
    I'm not familiar with peertube. But to make it short: Use the S3-endpoint for uploads and the custom domain for user access to play videos.
  • u

    ucinteractivesl

    03/01/2023, 3:22 PM
    In our config file we don´t see any anything to set custom domamin
  • u

    ucinteractivesl

    03/01/2023, 3:22 PM
    Only S3-endpoint
  • a

    aeharding

    03/01/2023, 4:35 PM
    You need HEAD as well
  • a

    aeharding

    03/01/2023, 4:36 PM
    Copy code
    [
      {
        "AllowedOrigins": [
          "*"
        ],
        "AllowedMethods": [
          "GET",
          "HEAD"
        ],
        "AllowedHeaders": [
          "*"
        ],
        "ExposeHeaders": [],
        "MaxAgeSeconds": 3600
      }
    ]
  • a

    aeharding

    03/01/2023, 4:39 PM
    Add HEAD
  • k

    kev-ac

    03/01/2023, 5:08 PM
    I've never seen a HEAD request for video delivery.
  • i

    ImJasonH

    03/01/2023, 5:08 PM
    Is there any way we can authenticate requests to R2 that don't rely on a static long lived token? Something like OIDC federation would be awesome. Short of that, an API to rotate the secrets? Anything on the roadmap
  • k

    kev-ac

    03/01/2023, 5:10 PM
    I hope that something like this is on the roadmap. But most important would be bucket-scoped tokens.. Maybe you can roll something yourself by using the API to create and remove tokens on-fly.
  • k

    kev-ac

    03/01/2023, 5:10 PM
    Would still have a single point where you need a long-lived token but it surely limits the exposure of this token.
  • a

    aeharding

    03/01/2023, 5:28 PM
    For some reason I had Cors issues with PeerTube and r2 until I added HEAD
  • u

    ucinteractivesl

    03/01/2023, 6:34 PM
    Have you connected peertube to R2 ?
  • u

    ucinteractivesl

    03/01/2023, 6:34 PM
    I added this cors policy, and is not working neither
  • u

    ucinteractivesl

    03/01/2023, 6:35 PM
    How have you set custom domain in production.yaml in peertube server?
  • a

    aeharding

    03/01/2023, 6:36 PM
    Yeah, it’s working at https://urbanists.video
  • u

    ucinteractivesl

    03/01/2023, 6:37 PM
    Awesome
  • u

    ucinteractivesl

    03/01/2023, 6:38 PM
    Did you set custom domain in R2?
  • n

    Noodles

    03/01/2023, 6:39 PM
    posted this in the wrong channel woops, so posting it here correctly this time Anyone else getting a "The specified key does not exist. (Code: 10007)" when trying to view via the dashboard for something uploaded this morning? https://www.bghddevelopment.com/cdn-cgi/imagedelivery/6pDiUJVklyFQ8zDPATvmkQ/ed4ad625-0673-4149-85b4-4f7c8ef45000/public The files exist but then clicking any of them send the error above: https://www.bghddevelopment.com/cdn-cgi/imagedelivery/6pDiUJVklyFQ8zDPATvmkQ/2f7d9189-b5a2-4d06-a74d-7d1b876f6500/public
    s
    • 2
    • 4
  • a

    aeharding

    03/01/2023, 6:39 PM
    Yes. Just fyi there’s two major issues with 5.0.1: ACL update nulling out objects, and uploads >500mb not respecting range requests https://github.com/Chocobozzz/PeerTube/issues/5646
  • u

    ucinteractivesl

    03/01/2023, 6:40 PM
    Could you please let me know where have you configured custom domain in production.yaml?
  • a

    aeharding

    03/01/2023, 6:40 PM
    Check out above issue
  • a

    aeharding

    03/01/2023, 6:42 PM
    base_url
  • u

    ucinteractivesl

    03/01/2023, 6:44 PM
    Ok thanks
  • u

    ucinteractivesl

    03/01/2023, 6:44 PM
    I tried before setting custom domain in base url
  • u

    ucinteractivesl

    03/01/2023, 6:44 PM
    But it didn`t work
  • u

    ucinteractivesl

    03/01/2023, 6:44 PM
    Perhaps becuase of the head in cors thing
  • u

    ucinteractivesl

    03/01/2023, 6:44 PM
    Let`s see now
  • n

    Noodles

    03/01/2023, 6:44 PM
    Quick update to this, seems to send for ANY uploaded file in the dashboard regardless of when I uploaded it. If I had to guess this is possibly related to the dashboard API error status page that was happening earlier, though that was marked resolved.
  • u

    ucinteractivesl

    03/01/2023, 6:45 PM
    Not working
1...923924925...1050Latest