update readme traefik

This commit is contained in:
Mathieu Broillet 2025-08-25 19:28:20 +02:00
parent 1b77cf30cc
commit cb045a2290
Signed by: mathieub
GPG Key ID: 4428608CDA3A98D3

View File

@ -11,6 +11,7 @@ subscription.
- A Plex server (self-hosted)
### What works?
- PlexAmp mobile (download mode)
## How to setup ?
@ -95,7 +96,7 @@ http:
entryPoints:
- https
service: plex_proxy
rule: Host(`clients.plex.tv`) || Host(`plex.tv`)
rule: HostRegexp(`^.+\.plex\.tv$`) || Host(`plex.tv`)
tls: { }
services:
@ -178,10 +179,11 @@ If you see the Plex "Oops, 404" page then something is wrong with your redirecti
## Patch Plexamp
>[!IMPORTANT]
> [!IMPORTANT]
> You'll need to have the official PlexAmp app installed on your device for this to work.
You can use ADB to extract the APK from your device:
```bash
# Execute this from the root of the cloned repo
# Also make sure you have adb installed and your device connected
@ -190,10 +192,12 @@ for apk in $(adb shell pm path tv.plex.labs.plexamp | sed 's/package://'); do
adb pull "$apk" .
done
```
>[!NOTE]
> [!NOTE]
> You might be able to download the APK from some websites but it's safer to extract it from your own device.
You'll end up with something like this in the `extracted_apks` folder:
```
.
├── base.apk
@ -204,7 +208,8 @@ You'll end up with something like this in the `extracted_apks` folder:
└── split_config.xxxhdpi.apk
```
Then you need to patch the `cacert.pem` file inside the `base.apk` to add the `plexhackCA.crt` certificate generated in step 1 and re-sign all the APKs.
Then you need to patch the `cacert.pem` file inside the `base.apk` to add the `plexhackCA.crt` certificate generated in
step 1 and re-sign all the APKs.
_This might sound harder than it is, just follow these steps_:
```bash
@ -238,12 +243,14 @@ done
```
You can now install the modified APK on your Android device.
```bash
# Make sure to uninstall the official PlexAmp app first
adb install-multiple base.apk split_config.*.apk
```
## Patch Plexamp Headless
```bash
# Execute this from the root of the cloned repo
mkdir plexamp_headless && cd plexamp_headless
@ -268,7 +275,9 @@ systemctl enable --now plexamp # to start at boot and start now
```
### Configure Plexamp Headless
Once started I recommend settings these settings for optimal experience:
```bash
# Do not mixdown to stereo (val: true/false)
echo "Bfalse" > ${HOME}/.local/share/Plexamp/Settings/%40Plexamp%3Asettings%3AaudioMixdownToStereo
@ -291,10 +300,14 @@ echo "N4" > ${HOME}/.local/share/Plexamp/Settings/%40Plexamp%3Asettings%3Asample
# Set sample rate matching to "Strict" (val: 0-2)
echo "N2" > ${HOME}/.local/share/Plexamp/Settings/%40Plexamp%3Asettings%3AsampleRateMatching
```
_I don't recommend accessing the Plexamp Headless webUI as it might cause issues with the hack (not tested though)._
#### Setup output device
I had to manually overwrite the default connection as I wanted to output to a S/PDIF device, check your devices with `aplay -l` :
I had to manually overwrite the default connection as I wanted to output to a S/PDIF device, check your devices with
`aplay -l` :
```
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALCS1200A Analog [ALCS1200A Analog]
@ -303,6 +316,7 @@ card 1: PCH [HDA Intel PCH], device 0: ALCS1200A Analog [ALCS1200A Analog]
```
Create the file ``/etc/asound.conf`` and modify it to match your device, this worked for me:
```
pcm.!default {
type plug