title: Caddy + Organizr + Plex Media Server = Can't connect to PMS?
body: <p>Ultimately my goal is to be able to load my PMS admin interface via Organizr. I had already tried simply using the URL <code>https://app.plex.tv/desktop</code> through Organizr, but that URL disallows loading the page in iFrames, so now I'm trying to use Caddy server to reverse proxy it to my local LAN IP instead ...</p>
  
  <p>I have this code in my <code>Caddyfile</code> (<em>note that my PMS is hosted on a different pc on my LAN</em>):</p>
  
  <pre><code>proxy /pms https://192.168.234.234:32400 {
    websocket
    keepalive 12
    header_upstream Host {host}
    header_upstream X-Real-IP {remote}
    header_upstream X-Forwarded-For {remote}
    header_upstream X-Forwarded-Proto {scheme}
    transparent
  }
  </code></pre>
  
  <p>Then when I try to visit the URL, it gives me a <code>502 Bad Gateway</code>, and the Caddy log file says <code>[ERROR 502 /pms] x509: cannot validate certificate for 192.168.234.234 because it doesn't contain any IP SANs</code></p>
  
  <p>If I add the <code>insecure_skip_verify</code> directive, I get the error: <code>401 Unauthorized</code> instead.</p>
  
  <p>I'm still pretty new to using Caddy, anyone know what's going on here?</p>