How to deal with “unauthorized” fail2ban jail in SWAG?

Having an issue with the nginx-unauthorized filter.

I have plex server setup I have SSL also setup. Locally everything works great. If I am on an external IP nginx-unauthorized is constantly getting triggered. If I clear the ban I can click on one video it will play. I might get away with 2 videos. by the 3rd video nginx-unauthorized is instantly triggered and the IP is banned.

includeMeta=1&X-Plex-Language=en-US&X-Plex-Device-Name=iPhone HTTP/2.0" 200 197 "-" "PlexMobile/8.29 (iPhone; iOS 17.1.2; Scale/3.00)" includeConcerts=1&includeExternalMedia=1&includeExternalMetadata=1&includeExtras=1&includeGeolocation=0&includeMarkers=1&includeMeta=1&includeOnDeck=1&includePlexLinks=1&includePopularLeaves=1&includePreferences=0&includeRelated=0&includeRelatedCount=15&includeReviews=1&X-Plex-Text- udnessRamps=1&recursive=0&shuffle=0&type=video&uri=server%3A%2F%2F4f4671f86923a93230766c4f924000def8006226%2Fcom.plexapp.plugins.library%2Flibrary%2Fmetadata%2F12633&X-Plex-Language=en-US&X-Plex-Device-Name=iPhone HTTP/2.0" 200 1127 "-" "PlexMobile/8.29 (iPhone; iOS 17.1.2; Scale/3. includeConcerts=1&includeExternalMedia=1&includeExternalMetadata=1&includeExtras=1&includeGeolocation=0&includeMarkers=1&includeMeta=1&includeOnDeck=1&includePlexLinks=1&includePopularLeaves=1&includePreferences=0&includeRelated=0&includeRelatedCount=15&includeReviews=1&X-Plex-Text- includeConcerts=1&includeExternalMedia=1&includeExternalMetadata=1&includeExtras=1&includeGeolocation=0&includeMarkers=1&includeMeta=1&includeOnDeck=1&includePlexLinks=1&includePopularLeaves=1&includePreferences=0&includeRelated=0&includeRelatedCount=15&includeReviews=1&X-Plex-Text- toAdjustQuality=0&directPlay=1&directStream=1&directStreamAudio=1&location=cellular&mediaBufferSize=20000&partIndex=0&path=%2Flibrary%2Fmetadata%2F12633&peakBitrate=720&protocol=hls&subtitleSize=100&subtitles=auto&useDoviCodecs=1&videoBitrate=720&videoResolution=4096x2160&X-Plex-Cli toAdjustQuality=0&directPlay=0&directStream=1&directStreamAudio=1&location=cellular&mediaBufferSize=40000&partIndex=0&path=%2Flibrary%2Fmetadata%2F12633&peakBitrate=720&protocol=hls&subtitleSize=100&subtitles=auto&useDoviCodecs=1&videoBitrate=720&videoResolution=4096x2160&X-Plex-Cli 401 82 "-" "PlexMobile/8.29 (iPhone; iOS 17.1.2; Scale/3.00)" city=70&quality=0&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F12633%2Fthumb%2F1695142436&width=240&X-Plex-Language=en-US&X-Plex-Device-Name=iPhone HTTP/2.0" 200 3238 "-" "PlexMobile/8.29 (iPhone; iOS 17.1.2; Scale/3.00)" rary%2Fmetadat

looks like log gets polluted with 401. What logs do you need I would be bappy to share after stripping personal information. On my system if someone comes in as http they get promoted to https.

I’m having the same issue.