1. 08 Jun, 2021 1 commit
  2. 11 May, 2021 1 commit
  3. 10 May, 2021 2 commits
    • Chocobozzz's avatar
      Update nginx config for resumable upload · f2b5aa59
      Chocobozzz authored
      f2b5aa59
    • kontrollanten's avatar
      Resumable video uploads (#3933) · f6d6e7f8
      kontrollanten authored
      
      
      * WIP: resumable video uploads
      
      relates to #324
      
      * fix review comments
      
      * video upload: error handling
      
      * fix audio upload
      
      * fixes after self review
      
      * Update server/controllers/api/videos/index.ts
      Co-authored-by: Rigel Kent's avatarRigel Kent <par@rigelk.eu>
      
      * Update server/middlewares/validators/videos/videos.ts
      Co-authored-by: Rigel Kent's avatarRigel Kent <par@rigelk.eu>
      
      * Update server/controllers/api/videos/index.ts
      Co-authored-by: Rigel Kent's avatarRigel Kent <par@rigelk.eu>
      
      * update after code review
      
      * refactor upload route
      
      - restore multipart upload route
      - move resumable to dedicated upload-resumable route
      - move checks to middleware
      - do not leak internal fs structure in response
      
      * fix yarn.lock upon rebase
      
      * factorize addVideo for reuse in both endpoints
      
      * add resumable upload API to openapi spec
      
      * add initial test and test helper for resumable upload
      
      * typings for videoAddResumable middleware
      
      * avoid including aws and google packages via node-uploadx, by only...
      f6d6e7f8
  4. 12 Feb, 2021 2 commits
  5. 31 Jan, 2021 1 commit
  6. 28 Jan, 2021 1 commit
  7. 25 Jan, 2021 1 commit
    • Rigel Kent's avatar
      add `proxy_ignore_client_abort` flag to Nginx conf · df7b786f
      Rigel Kent authored
      The `proxy_ignore_client_abort` flag specifies whether nginx will
      monitor possible connection close while waiting for an upstream
      server response. If an error occurs while sending a response, the
      connection will be closed regardless of the flag, much like if
      there were no nginx at all.
      
      fixes #3484
      df7b786f
  8. 17 Jan, 2021 1 commit
  9. 13 Jan, 2021 2 commits
  10. 30 Dec, 2020 1 commit
  11. 03 Dec, 2020 1 commit
  12. 23 Nov, 2020 1 commit
  13. 18 Nov, 2020 1 commit
  14. 17 Nov, 2020 1 commit
  15. 16 Nov, 2020 2 commits
    • Rigel Kent's avatar
      refresh nginx config and optimize delivery (#3313) · 5f59cf07
      Rigel Kent authored
      refactors the Nginx configuration for the following points:
      - update tls version to include 1.3 by default. so far it was not included by default to make room for previous versions of Nginx, but since 2018 Debian stable has included Nginx in version 1.14.1, and tls 1.3 is available since Nginx 1.13.0.
      - clearly indicate that new minimum required version.
      - update outdated ssl_ciphers to remove cipher required to support android 4.4, since that version is unsupported since March 2020.
      - reordered configuration in sections for easier maintenance: performance optimizations are separated from the vital application/websocket parts.
      - move parts that always require manual configuration at the top: peertube host and server name, use server_name 
      - move peertube host to a more flexible upstream block: it allows to configure it in one place instead of 3, and is future-proof regarding load-balancing.
      - simplified port 80 block: Let’s Encrypt supports 301 redirects.
      - group certificate-related config together.
      - remove reslover config: it defaults to /etc/resolv.conf which is more than enough.
      - align values with their neighbors for easier reading
      - always specify units
      - always specify default values when they differ from the values set
      - use ’m’ for minutes, ’M’ for megabytes
      - add consensual optimizations wrt file serving:
        - add timeout optimizations
        - add file descriptor cache optimizations
        - enable sendfile with chunk size > rate limit
        - enable threading
        - tcp optimizations
        - point to further, more system-specific optimizations in the section description
      - CDN configuration reduced to one line change
      5f59cf07
    • Kimsible's avatar
      8872828d
  16. 11 Nov, 2020 1 commit
    • Rigel Kent's avatar
      Add nginx behind traefik in docker-compose + image updates · 1a9b141d
      Rigel Kent authored
      - support/docker/production/docker-compose.yml: addition of a nginx
      image reusing support/nginx/peertube nginx conf to improve performance,
      and lessen setup differences between the docker-compose install and the
      typical production install.
      - support/docker/production/docker-compose.yml: postgres 10 -> postgres
      12, redis 4 -> redis 5. Postgres major updates implies manual upgrade.
      - support/nginx/peertube: HTTP -> HTTPS redirection is now commented
      by default, to allow its reuse in support/docker/production/docker-compose.yml.
      1a9b141d
  17. 09 Mar, 2020 1 commit
  18. 03 Mar, 2020 1 commit
  19. 17 Dec, 2019 1 commit
  20. 12 Dec, 2019 1 commit
  21. 10 Dec, 2019 2 commits
  22. 05 Dec, 2019 1 commit
  23. 07 Aug, 2019 1 commit
  24. 29 Jul, 2019 1 commit
  25. 11 Feb, 2019 1 commit
  26. 29 Jan, 2019 1 commit
  27. 07 Dec, 2018 1 commit
    • Micah Elizabeth Scott's avatar
      Remove hard-coded 8GB upload limit in client (#1293) · 4b493858
      Micah Elizabeth Scott authored
      * Remove hard-coded 8GB upload limit in client
      
      Ideally we'd know what the specific server's configured upload limit
      is before starting, but this 8GB limit is not useful if an administrator
      has changed the nginx post limit on the server.
      
      * Better docs for admins about client_max_body_size
      
      Seems like some admins already tweak this value up or down to allow
      for different maximum video upload sizes. The current codebase has no
      other server-side limits that I'm aware of, and I've been routinely
      uploading quite large videos to my instance.
      
      This patch replaces the somewhat incorrect (or outdated?) 'hard limit'
      comment with some advice about allocating enough space for nginx and
      communicating the limit with your users.
      
      Of course it would be better if this configuration could be unified with
      PeerTube's config somehow. I'm not sure whether the best option there is
      to turn off nginx's buffering here and let PeerTube handle the entire upload
      (can we do this only for the video upload API endpoint?) or whether we want
      PeerTube to generate nginx configs in a more automated way layer. In any case,
      this patch is intended as an incremental improvement.
      4b493858
  28. 04 Dec, 2018 1 commit
  29. 17 Sep, 2018 1 commit
  30. 11 Sep, 2018 1 commit
  31. 09 Sep, 2018 1 commit
  32. 24 Aug, 2018 2 commits
    • Micah Elizabeth Scott's avatar
      Only enable gzip for HTML/CSS/JS · a18e02f3
      Micah Elizabeth Scott authored
      No compression on JSON endpoints, in order to protect
      from potential compression+encryption data leak attacks (like BREACH)
      a18e02f3
    • Micah Elizabeth Scott's avatar
      Add gzip support to the sample nginx configuration · b9ad9956
      Micah Elizabeth Scott authored
      Without gzip explicitly enabled, load times suffer from transferring
      over a megabyte of plaintext javascript. With gzip enabled, the bundle
      is down to about 300K, and loads much faster.
      
      This change does not enable gzip on files that are already compressed,
      so images, fonts, and videos will be sent without the CPU overhead.
      b9ad9956
  33. 24 Jul, 2018 2 commits