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.conf overwritten on restart

peertube.conf overwritten on restart

Scheduled Pinned Locked Moved PeerTube
5 Posts 4 Posters 488 Views 4 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.
  • V Offline
    V Offline
    vividly8450
    wrote on last edited by vividly8450
    #1

    In order to reliably stream 4K, I have to adjust three rate limiter settings settings in /etc/nginx/sites-enabled/peertube.conf. As shipped PeerTube limits the speed to 5 Mb/s, and recommends site admins review this setting in their post-install guide.

    A 4K 60 FPS video with moderate compression can easily have a bitrate of around 50 - 75 Mb/s, so I typically set this value to around 150M to allow ample elbow room. But when I restart the service, all my changes are overwritten. The site becomes unusable because any 4K video begins to stutter badly.

    I don't have this issue with my previous freestanding installation nor my YunoHost installation, so I assume Cloudron is pulling a default config file from somewhere. Is there any way to make my changes to this file persistent? On the host systems I do see multiple copies of peertube.conf and nginx.conf located at many different folders with paths like /var/lib/docker/overlay2/long_alphanumeric_string/, but as Docker isn't my forte, I'm not sure what I should and should not be modifying to do things "correctly".

    Thanks!

    UPDATE: I just noticed that the nginx.conf file is not writeable, even as root. But there has to be some way to modify the file. What's the correct way to do so?

    jdaviescoatesJ 1 Reply Last reply
    0
    • V vividly8450

      In order to reliably stream 4K, I have to adjust three rate limiter settings settings in /etc/nginx/sites-enabled/peertube.conf. As shipped PeerTube limits the speed to 5 Mb/s, and recommends site admins review this setting in their post-install guide.

      A 4K 60 FPS video with moderate compression can easily have a bitrate of around 50 - 75 Mb/s, so I typically set this value to around 150M to allow ample elbow room. But when I restart the service, all my changes are overwritten. The site becomes unusable because any 4K video begins to stutter badly.

      I don't have this issue with my previous freestanding installation nor my YunoHost installation, so I assume Cloudron is pulling a default config file from somewhere. Is there any way to make my changes to this file persistent? On the host systems I do see multiple copies of peertube.conf and nginx.conf located at many different folders with paths like /var/lib/docker/overlay2/long_alphanumeric_string/, but as Docker isn't my forte, I'm not sure what I should and should not be modifying to do things "correctly".

      Thanks!

      UPDATE: I just noticed that the nginx.conf file is not writeable, even as root. But there has to be some way to modify the file. What's the correct way to do so?

      jdaviescoatesJ Online
      jdaviescoatesJ Online
      jdaviescoates
      wrote on last edited by
      #2

      @vividly8450 have you seen https://docs.cloudron.io/apps/peertube/ ?

      It says there:

      Customization

      Use the File manager to edit custom configuration under /app/data/production.yaml

      Does that work?

      I use Cloudron with Gandi & Hetzner

      V 1 Reply Last reply
      0
      • jdaviescoatesJ jdaviescoates

        @vividly8450 have you seen https://docs.cloudron.io/apps/peertube/ ?

        It says there:

        Customization

        Use the File manager to edit custom configuration under /app/data/production.yaml

        Does that work?

        V Offline
        V Offline
        vividly8450
        wrote on last edited by vividly8450
        #3

        @jdaviescoates Unfortunately those are the PeerTube configuration options, which you'd normally set through the web interface. Rate limiting (specifically, the limit_rate and proxy_limit_rate directives) are set through the nginx configuration file at /etc/nginx/sites-enabled/peertube.conf, and there doesn't appear to be any way to access that through the file manager.

        Interestingly enough I was previously able to modify this file to solve this issue (see here), but it appears something has changed since then.

        1 Reply Last reply
        0
        • sponchS Online
          sponchS Online
          sponch
          wrote on last edited by
          #4

          any solution on that? how does your .conf look like somehow I can't find it.

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @sponch we used the upstream nginx configs and indeed they have a rate limit by default. I am not sure why. I think the package can disable them.

            1 Reply Last reply
            1
            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