#4 : OMVRpcServiceConfig->appl圜hanges(Array, Array) #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModulePlexMediaServer->startService() #2 /usr/share/openmediavault/engined/module/plexmediaserver.inc(46): OMV\System\SystemCtl->enable(true) #1 /usr/share/php/openmediavault/system/systemctl.inc(104): OMV\System\SystemCtl->exec('start', NULL, false) #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1) in /usr/share/php/openmediavault/system/process.inc:182 See "systemctl status rvice" and "journalctl -xe" for details.
#Plex media server connection refused code
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin export LANG=C.UTF-8 systemctl start 'plexmediaserver' 2>&1' with exit code '1': Job for rvice failed because of unavailable resources or another system error. # TO DO: rewrite /web/(.*) to just /index.html #try_files $uri $uri/ /index.Code Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin export LANG=C.UTF-8 systemctl start 'plexmediaserver' 2>&1' with exit code '1': Job for rvice failed because of unavailable resources or another system error. #proxy_set_header Accept-Encoding "" # Buffering off send to the client as soon as the data is received from Plex. # May also improve loading time by a very marginal amount, as nginx will compress anyway. # Disables compression between Plex and Nginx, required if using sub_filter below. Proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version Proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key Proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions Proxy_set_header X-Forwarded-Proto $scheme # If not using ngx_http_realip_module change '$http_x_forwarded_for,$realip_remote_addr' to $proxy_add_x_forwarded_for proxy_set_header X-Forwarded-For ' $proxy_add_x_forwarded_for, $realip_remote_addr' # Forward real ip and host to Plex proxy_set_header Host $host Gzip_types text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml # Pay attention to how many domains we need to allow add_header Content-Security-Policy "default-src 'none' base-uri 'self' font-src 'self' data: media-src 'self' data: blob: script-src 'self' 'unsafe-inline' 'unsafe-eval' style-src 'self' 'unsafe-inline' img-src 'self' data: blob: https: worker-src * blob: frame-src 'self' connect-src 'self' https: wss://*.plex.direct:32400 wss:// object-src 'self' frame-ancestors 'self' form-action 'self' manifest-src 'self' script-src-elem 'self' 'unsafe-inline' error_page 500 502 503 504 /50x.html # For LetsEncrypt/Certbot, you can get your chain like this: ssl_trusted_certificate /path/to/intermediate/ocsp/cert-r3.pem Īdd_header Strict-Transport-Security max-age=15768000 Īdd_header Referrer-Policy strict-origin-when-cross-origin Īdd_header X-Content-Type-Options nosniff Īdd_header X-XSS-Protection "1 mode=block" Īdd_header Permissions-Policy "geolocation=(self), midi=(self), sync-xhr=(self), microphone=(self), camera=(self), magnetometer=(self), gyroscope=(self), fullscreen=(self), payment=(self)" Ssl_session_cache builtin:1000 shared:SSL:10m Ssl_certificate_key /etc/letsencrypt/live//priv.pem Ssl_certificate /etc/letsencrypt/live//fullchain.pem