Skip to content

RoyXiang/plexproxy

Folders and files

NameName
Last commit message
Last commit date
Oct 28, 2022
Mar 11, 2022
Nov 15, 2022
Feb 15, 2022
Mar 13, 2022
Oct 28, 2022
Mar 10, 2022
Jun 9, 2022
Jun 9, 2022
Mar 13, 2022

Repository files navigation

Plex Proxy

plexproxy is a middleware runs before a Plex Media Server which could increase the performance of a low-end server.

Features

  1. Traffic control by devices
  2. Cross-device response caching by client type
  3. Disable transcoding by forcing direct play/stream
  4. Redirect web app to official one
  5. Plaxt integration

Prerequisites

  1. Plex Media Server
  2. Redis (Optional)

Install

Download from Releases, or build by yourself:

env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/RoyXiang/plexproxy@latest

Usage

  1. Configure environment variables in your preferred way
    • PLEX_BASEURL (Required, e.g. http://127.0.0.1:32400)
    • REDIS_URL (Optional, e.g. redis://127.0.0.1:6379)
      • If you need a cache layer, set a value for it
    • PLAXT_URL (Optional, e.g. https://plaxt.astandke.com/api?id=generate-your-own-silly)
    • PLEX_TOKEN (Optional, if you need it, see here)
    • REDIRECT_WEB_APP (Optional, default: true)
    • DISABLE_TRANSCODE (Optional, default: true)
    • NO_REQUEST_LOGS (Optional, default: false)
  2. Run the program