Cloudbox / autoscan

Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
MIT License
594 stars 49 forks source link

Support for invalid certificates #181

Open Pyrogeen opened 1 year ago

Pyrogeen commented 1 year ago

Hello, could you please add an option to disable certificate checking? My plex server is set to "Secure connections: Required" without a proper cert and autoscan fails to start because of it.

Dec 10 14:43:12 WRN Webhooks running without authentication Dec 10 14:43:12 INF Initialised triggers bernard=0 inotify=0 lidarr=0 manual=1 radarr=1 sonarr=1 Dec 10 14:43:12 INF Starting server on port 3030 Dec 10 14:43:12 FTL Failed initialising target error="version: Get \"https://plex.icenet:32400/\": x509: certificate is valid for *.90006cf6d0fc495eb6b561465c4e39a1.plex.direct, not plex.icenet: target unavailable" target=plex target_url=https://plex.icenet:32400

alexazlo commented 1 month ago

Hello, could you please add an option to disable certificate checking? My plex server is set to "Secure connections: Required" without a proper cert and autoscan fails to start because of it.

Dec 10 14:43:12 WRN Webhooks running without authentication Dec 10 14:43:12 INF Initialised triggers bernard=0 inotify=0 lidarr=0 manual=1 radarr=1 sonarr=1 Dec 10 14:43:12 INF Starting server on port 3030 Dec 10 14:43:12 FTL Failed initialising target error="version: Get "https://plex.icenet:32400/\": x509: certificate is valid for *.90006cf6d0fc495eb6b561465c4e39a1.plex.direct, not plex.icenet: target unavailable" target=plex target_url=https://plex.icenet:32400

I was getting same error, fortunately I am using autoscan on the same server as plex.... so even though plex requires https... autoscan will connect correctly using http://localhost:32400 as the url in the config
it wont work using https:// (cert error) or http://192. network ip addresses... (refuses connection)