-
I am fairly new to OME and I am trying to access thumbnails over my nginx http proxy, but unfortunately I only get 404 when I access the url from the web. Streaming LLHLS works fine. When calling
When calling from the web via
The log also only shows Docker Composeversion: '3'
services:
ovenmediaengine:
container_name: ome
environment:
- TZ=Europe/Berlin
ports:
- 1935:1935
#- 9999:9999/udp
#- 9000:9000
- 3333:3333
#- 3334:3334
#- 3478:3478
#- 10000-10009:10000-10009/udp
volumes:
- type: bind
source: ./confs
target: /opt/ovenmediaengine/bin/origin_conf
- type: bind
source: ./logs
target: /var/log/ovenmediaengine
image: airensoft/ovenmediaengine:latest
restart: unless-stopped
networks:
- ome
networks:
ome:
Nginxserver {
listen 443 ssl;
listen [::]:443 ssl;
server_name hls.my.host;
include /etc/nginx/snippets/letsencrypt;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
set $upstream http://127.0.0.1:3333;
proxy_pass $upstream;
}
access_log off;
error_log off;
} Server.xml<?xml version="1.0" encoding="UTF-8" ?>
<Server version="8">
<Name>OvenMediaEngine</Name>
<Type>origin</Type>
<IP>*</IP>
<PrivacyProtection>false</PrivacyProtection>
<!--
<StunServer>stun.ovenmediaengine.com:13478</StunServer>
-->
<Modules>
<HTTP2>
<Enable>false</Enable>
</HTTP2>
<LLHLS>
<Enable>true</Enable>
</LLHLS>
<P2P>
<Enable>false</Enable>
<MaxClientPeersPerHostPeer>2</MaxClientPeersPerHostPeer>
</P2P>
</Modules>
<!-- Settings for the ports to bind -->
<Bind>
<Providers>
<RTMP>
<Port>${env:OME_RTMP_PROV_PORT:1935}</Port>
<WorkerCount>1</WorkerCount>
</RTMP>
</Providers>
<Publishers>
<LLHLS>
<Port>${env:OME_LLHLS_STREAM_PORT:3333}</Port>
<WorkerCount>2</WorkerCount>
</LLHLS>
<Thumbnail>
<Port>${env:OME_LLHLS_STREAM_PORT:3333}</Port>
</Thumbnail>
</Publishers>
</Bind>
<VirtualHosts>
<VirtualHost include="VHost*.xml"/>
<VirtualHost>
<Name>default</Name>
<Distribution>my.host</Distribution>
<!-- Settings for multi ip/domain and TLS -->
<Host>
<Names>
<Name>*</Name>
</Names>
<TLS>
<CertPath>/certs/cert.pem</CertPath>
<KeyPath>/certs/privkey.pem</KeyPath>
<ChainCertPath>/certs/chain.pem</ChainCertPath>
</TLS>
</Host>
<!-- Default CORS Settings -->
<CrossDomains>
<Url>*</Url>
</CrossDomains>
<!-- Settings for applications -->
<Applications>
<Application>
<Name>app</Name>
<!-- Application type (live/vod) -->
<Type>live</Type>
<OutputProfiles>
<!-- Enable this configuration if you want to hardware acceleration using GPU -->
<HWAccels>
<Decoder>
<Enable>false</Enable>
</Decoder>
<Encoder>
<Enable>false</Enable>
</Encoder>
</HWAccels>
<OutputProfile>
<Name>source</Name>
<OutputStreamName>${OriginStreamName}</OutputStreamName>
<Encodes>
<Video>
<Bypass>true</Bypass>
</Video>
<Audio>
<Bypass>true</Bypass>
</Audio>
<Image>
<Codec>jpeg</Codec>
<Framerate>0.1</Framerate>
<Width>640</Width>
<Height>360</Height>
</Image>
</Encodes>
</OutputProfile>
</OutputProfiles>
<Providers>
<RTMP>
<BlockDuplicateStreamName>true</BlockDuplicateStreamName>
</RTMP>
</Providers>
<Publishers>
<AppWorkerCount>1</AppWorkerCount>
<StreamWorkerCount>8</StreamWorkerCount>
<LLHLS>
<OriginMode>true</OriginMode>
<ChunkDuration>0.3</ChunkDuration>
<PartHoldBack>1</PartHoldBack>
<SegmentDuration>2</SegmentDuration>
<SegmentCount>10</SegmentCount>
<CrossDomains>
<Url>*</Url>
</CrossDomains>
</LLHLS>
<Thumbnail>
<CrossDomains>
<Url>*</Url>
</CrossDomains>
</Thumbnail>
</Publishers>
</Application>
</Applications>
</VirtualHost>
</VirtualHosts>
</Server>
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Your nginx is making requests to OME over http1.0. (Is it an old nginx?) We didn't expect this. We fixed it to work on http1.0, would you like to test it on the master branch? |
Beta Was this translation helpful? Give feedback.
Your nginx is making requests to OME over http1.0. (Is it an old nginx?) We didn't expect this. We fixed it to work on http1.0, would you like to test it on the master branch?