Follow this guide to generate an SSH private/public key pair, retrieve it, or send it to a client machine.
# 1) Generate an SSH Key
ssh-keygen -t rsa| curl -X POST \ | |
| -H 'X-Plex-Version: 0.3.0' \ | |
| -H 'X-Plex-Product: YOUR PRODUCT NAME' \ | |
| -H 'X-Plex-Client-Identifier: YOUR-PRODUCT-ID' \ | |
| -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \ | |
| --data-urlencode 'user[password]=PLEX_PASSWORD' \ | |
| --data-urlencode 'user[login]=PLEX_USERNAME' \ | |
| https://plex.tv/users/sign_in.json |
| <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> | |
| <TypePattern DisplayName="Non-reorderable types"> | |
| <TypePattern.Match> | |
| <Or> | |
| <And> | |
| <Kind Is="Interface" /> | |
| <Or> | |
| <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> | |
| <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> | |
| </Or> |
| @font-face { | |
| font-family: 'Netflix Sans'; | |
| font-weight: 100; | |
| font-display: optional; | |
| src: url(https://assets.nflxext.com/ffe/siteui/fonts/netflix-sans/v3/NetflixSans_W_Th.woff2) format('woff2'),url(https://assets.nflxext.com/ffe/siteui/fonts/netflix-sans/v3/NetflixSans_W_Th.woff) format('woff') | |
| } | |
| @font-face { | |
| font-family: 'Netflix Sans'; |
| <!-- Modified from https://gist.github.com/NicholasKimuli/2b167ca1c6ce03cb860e3f89d17db1eb | |
| Bonaire, Saba and Sint Eustatius may need a future flag update --> | |
| <select class="input-block-level" id="countryCode" name="countryCode"> | |
| <option data-countryCode="AF" value="93">🇦🇫 Afghanistan (+93)</option> | |
| <option data-countryCode="AL" value="355">🇦🇽 Albania (+355)</option> | |
| <option data-countryCode="DZ" value="213">🇩🇿 Algeria (+213)</option> | |
| <option data-countryCode="AD" value="376">🇦🇩 Andorra (+376)</option> | |
| <option data-countryCode="AO" value="244">🇦🇴 Angola (+244)</option> | |
| <option data-countryCode="AI" value="1264">🇦🇮 Anguilla (+1264)</option> | |
| <option data-countryCode="AG" value="1268">🇦🇬 Antigua & Barbuda (+1268)</option> |
| frontend fe_ssh | |
| bind *:2222 ssl crt /etc/haproxy/certs/ssl.pem | |
| mode tcp | |
| log-format "%ci:%cp [%t] %ft %b/%s %Tw/%Tc/%Tt %B %ts %ac/%fc/%bc/%sc/%rc %sq/%bq dst:%[var(sess.dst)] " | |
| tcp-request content set-var(sess.dst) ssl_fc_sni | |
| use_backend %[ssl_fc_sni] |
| <!-- Put in ./Library/Application Support/Plex Media Server/Profiles/Android-SHIELD Android TV.xml --> | |
| <!-- Author: Donald Webster [email protected] --> | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Client name="SHIELD Android TV"> | |
| <Identification> | |
| <Header name="User-Agent" substring="SHIELD Android TV" /> | |
| </Identification> | |
| <TranscodeTargets> | |
| <VideoProfile container="mkv" codec="h264" audioCodec="aac" context="streaming" /> | |
| <MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" /> |
This parts simple enough, but requires some adjusting of the official instructions to get working.
Most instructions online tell you that your docker-compose.yml file needs to have a network_mode: host in there. I dunno about that!
Works fine for me without that, so we're going to not.
version: '3'
services:
homeassistant: