Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Merge requests
  • !759

Serve from s3

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Agate requested to merge serve-from-s3 into develop May 09, 2019
  • Overview 0
  • Commits 2
  • Pipelines 1
  • Changes 7

Authentication / permissions is enforced as follows:

  • The client requests /api/v1/listen/uuid
  • Funkwhale checks permissions / authentication
  • A 302 response containaing a signed url to the bucket file is returned to the client
  • the client load the audio from this URL

The signed URL is valid only for one hour to limit potential abuse.

To enable this, simply set PROXY_MEDIA=false in your .env file.

This works in the web UI, but not for subsonic clients (because they don't necessarily follow 302 redirections, so we continue to proxy S3 files through Funkwhale in the Subsonic API.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: serve-from-s3