Currently if Plex server is exposed on the internet and someone tries to access it, Plex forces you to login using plex id.
This nginx config tricks plex into thinking that request is coming from LAN.
# Function to "skip" Spotify Ads by reloading the client | |
# whenever ad is detected | |
# Have https://pypi.org/project/spotify-cli-linux/ installed | |
reload_spotify() { | |
# Determine what's playing | |
spotifycli --status | grep -qi 'advertisement\| - Spotify\|^ - ' | |
# If the return matches ads string |