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) - A Plex server (self-hosted)
### What works? ### What works?
- PlexAmp mobile (download mode) - PlexAmp mobile (download mode)
## How to setup ? ## How to setup ?
@ -95,7 +96,7 @@ http:
entryPoints: entryPoints:
- https - https
service: plex_proxy service: plex_proxy
rule: Host(`clients.plex.tv`) || Host(`plex.tv`) rule: HostRegexp(`^.+\.plex\.tv$`) || Host(`plex.tv`)
tls: { } tls: { }
services: services:
@ -182,6 +183,7 @@ If you see the Plex "Oops, 404" page then something is wrong with your redirecti
> You'll need to have the official PlexAmp app installed on your device for this to work. > 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: You can use ADB to extract the APK from your device:
```bash ```bash
# Execute this from the root of the cloned repo # Execute this from the root of the cloned repo
# Also make sure you have adb installed and your device connected # 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" . adb pull "$apk" .
done 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 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: You'll end up with something like this in the `extracted_apks` folder:
``` ```
. .
├── base.apk ├── base.apk
@ -204,7 +208,8 @@ You'll end up with something like this in the `extracted_apks` folder:
└── split_config.xxxhdpi.apk └── 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_: _This might sound harder than it is, just follow these steps_:
```bash ```bash
@ -238,12 +243,14 @@ done
``` ```
You can now install the modified APK on your Android device. You can now install the modified APK on your Android device.
```bash ```bash
# Make sure to uninstall the official PlexAmp app first # Make sure to uninstall the official PlexAmp app first
adb install-multiple base.apk split_config.*.apk adb install-multiple base.apk split_config.*.apk
``` ```
## Patch Plexamp Headless ## Patch Plexamp Headless
```bash ```bash
# Execute this from the root of the cloned repo # Execute this from the root of the cloned repo
mkdir plexamp_headless && cd plexamp_headless mkdir plexamp_headless && cd plexamp_headless
@ -268,7 +275,9 @@ systemctl enable --now plexamp # to start at boot and start now
``` ```
### Configure Plexamp Headless ### Configure Plexamp Headless
Once started I recommend settings these settings for optimal experience: Once started I recommend settings these settings for optimal experience:
```bash ```bash
# Do not mixdown to stereo (val: true/false) # Do not mixdown to stereo (val: true/false)
echo "Bfalse" > ${HOME}/.local/share/Plexamp/Settings/%40Plexamp%3Asettings%3AaudioMixdownToStereo 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) # Set sample rate matching to "Strict" (val: 0-2)
echo "N2" > ${HOME}/.local/share/Plexamp/Settings/%40Plexamp%3Asettings%3AsampleRateMatching 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)._ _I don't recommend accessing the Plexamp Headless webUI as it might cause issues with the hack (not tested though)._
#### Setup output device #### 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 **** **** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALCS1200A Analog [ALCS1200A Analog] 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: Create the file ``/etc/asound.conf`` and modify it to match your device, this worked for me:
``` ```
pcm.!default { pcm.!default {
type plug type plug