Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. PeerTube
  3. PeerTube + S3?

PeerTube + S3?

Scheduled Pinned Locked Moved PeerTube
8 Posts 3 Posters 1.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • doodlemania2D Offline
    doodlemania2D Offline
    doodlemania2
    App Dev
    wrote on last edited by
    #1

    I've seen a couple of nibbles here and there regarding getting PeerTube up and going on S3 backend. A bit stuck, however (it's probably just me).
    In addition to the default settings, in production.yaml, I set everything up from what I could find in the docs:

    object_storage:
      enabled: true
      endpoint: 'myendpoint'
      credentials:
        access_key_id: 'myaccesskey'
        secret_access_key: 'mysecret'
      max_upload_part: 2GB
      videos:
        bucket_name: 'peertube'
        prefix: 'videos/'
      # Use the same bucket as for webtorrent videos but with a different prefix
      streaming_playlists:
        bucket_name: 'peertube'
        prefix: 'streaming-playlists/'
    

    Now, when I upload a video, it does transcribe and it does move the file from local storage to S3 endpoint - huzzah! But, when I go to watch the video, it just sits there and spins. There's some delightful logs stuff about "hash mismatch" and then the whole application comes crashing down. Sad.

    Anyone successfully done this?

    jdaviescoatesJ 1 Reply Last reply
    1
    • girishG girish moved this topic from Support on
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      Is your bucket publicly accessible for https?

      Conscious tech

      doodlemania2D 1 Reply Last reply
      1
      • doodlemania2D doodlemania2

        I've seen a couple of nibbles here and there regarding getting PeerTube up and going on S3 backend. A bit stuck, however (it's probably just me).
        In addition to the default settings, in production.yaml, I set everything up from what I could find in the docs:

        object_storage:
          enabled: true
          endpoint: 'myendpoint'
          credentials:
            access_key_id: 'myaccesskey'
            secret_access_key: 'mysecret'
          max_upload_part: 2GB
          videos:
            bucket_name: 'peertube'
            prefix: 'videos/'
          # Use the same bucket as for webtorrent videos but with a different prefix
          streaming_playlists:
            bucket_name: 'peertube'
            prefix: 'streaming-playlists/'
        

        Now, when I upload a video, it does transcribe and it does move the file from local storage to S3 endpoint - huzzah! But, when I go to watch the video, it just sits there and spins. There's some delightful logs stuff about "hash mismatch" and then the whole application comes crashing down. Sad.

        Anyone successfully done this?

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #3

        @doodlemania2 said in PeerTube + S3?:

        Anyone successfully done this?

        Yes, although I struggled for a good while too!

        Seems this is what eventually got it working for me:

        https://forum.cloudron.io/post/60616

        I use Cloudron with Gandi & Hetzner

        doodlemania2D 1 Reply Last reply
        3
        • robiR robi

          Is your bucket publicly accessible for https?

          doodlemania2D Offline
          doodlemania2D Offline
          doodlemania2
          App Dev
          wrote on last edited by
          #4

          @robi yes, but will revalidate!

          1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            @doodlemania2 said in PeerTube + S3?:

            Anyone successfully done this?

            Yes, although I struggled for a good while too!

            Seems this is what eventually got it working for me:

            https://forum.cloudron.io/post/60616

            doodlemania2D Offline
            doodlemania2D Offline
            doodlemania2
            App Dev
            wrote on last edited by
            #5

            @jdaviescoates oh perfect! let me follow these instructions and revert back. I think my only delta from you is that I'm using iDrive but that should be just a simple tweak.

            1 Reply Last reply
            1
            • doodlemania2D Offline
              doodlemania2D Offline
              doodlemania2
              App Dev
              wrote on last edited by
              #6

              Well, I gave the scaleway examples a try. Looks like iDrive is much more simple (for better or worse). I set the whole region to "share everything with all origins." Still no dice, so I think there must be something else afoot. Will try to catch some more detailed logs and see if I can get something going upstream with the peertube folks. Will report back if I hear anything!

              1 Reply Last reply
              1
              • doodlemania2D Offline
                doodlemania2D Offline
                doodlemania2
                App Dev
                wrote on last edited by
                #7

                Ohhh, could be my proxy servers not supporting bye-range requests. Hrm, that could be fun!

                1 Reply Last reply
                1
                • doodlemania2D Offline
                  doodlemania2D Offline
                  doodlemania2
                  App Dev
                  wrote on last edited by
                  #8

                  Confirmed it was CloudFlare doing cloudflary things. Up and going now, but would prefer to get Cloudflare back in front of it. Will keep tinkering, maybe there's a special rule or something (using CloudFlare proxy for safety).

                  1 Reply Last reply
                  2
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search