Guest User

Untitled

a guest
Feb 19th, 2021
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.97 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <Server version="8">
  3.     <Name>OvenMediaEngine</Name>
  4.     <!-- Host type (origin/edge) -->
  5.     <Type>origin</Type>
  6.     <!-- Specify IP address to bind (* means all IPs) -->
  7.     <IP>*</IP>
  8.     <!-- Settings for the ports to bind -->
  9.     <Bind>
  10.         <!-- Enable this configuration if you want to use API Server -->
  11.         <!--
  12.         <Managers>
  13.             <API>
  14.                 <Port>48081</Port>
  15.             </API>
  16.         </Managers>
  17.         -->
  18.         <Providers>
  19.             <RTMP>
  20.                 <Port>1935</Port>
  21.             </RTMP>
  22.             <MPEGTS>
  23.                 <!--
  24.                     Listen on port 4000~4005
  25.                     This is just a demonstration to show that you can configure the port in several ways
  26.                 -->
  27.                 <Port>4000-4004,4005/udp</Port>
  28.             </MPEGTS>
  29.         </Providers>
  30.         <Publishers>
  31.             <OVT>
  32.                 <Port>9000</Port>
  33.             </OVT>
  34.             <HLS>
  35.                 <Port>8080</Port>
  36.                 <!-- If you want to use TLS, specify the TLS port -->
  37.                 <!-- <TLSPort>443</TLSPort> -->
  38.             </HLS>
  39.             <DASH>
  40.                 <Port>8081</Port>
  41.                 <!-- If you want to use TLS, specify the TLS port -->
  42.                 <!-- <TLSPort>443</TLSPort> -->
  43.             </DASH>
  44.             <WebRTC>
  45.                 <Signalling>
  46.                     <Port>3334</Port>
  47.                     <TLSPort>3333</TLSPort>
  48.                 </Signalling>
  49.                 <IceCandidates>
  50.                     <!--  <TcpRelay>*:3478</TcpRelay> -->
  51.                     <IceCandidate>*:10000-10005/udp</IceCandidate>
  52.                 </IceCandidates>
  53.             </WebRTC>
  54.         </Publishers>
  55.     </Bind>
  56.     <!-- P2P works only in WebRTC -->
  57.     <!--
  58.     <P2P>
  59.         <MaxClientPeersPerHostPeer>2</MaxClientPeersPerHostPeer>
  60.     </P2P>
  61.     -->
  62.     <!--
  63.         Enable this configuration if you want to use API Server
  64.        
  65.         <AccessToken> is a token for authentication, and when you invoke the API, you must put "Basic base64encode(<AccessToken>)" in the "Authorization" header of HTTP request.
  66.         For example, if you set <AccessToken> to "ome-access-token", you must set "Basic b21lLWFjY2Vzcy10b2tlbg==" in the "Authorization" header.
  67.     -->
  68.     <!--
  69.     <Managers>
  70.         <Host>
  71.             <Names>
  72.                 <Name>*</Name>
  73.             </Names>
  74.             <TLS>
  75.                 <CertPath>path/to/file.crt</CertPath>
  76.                 <KeyPath>path/to/file.key</KeyPath>
  77.                 <ChainCertPath>path/to/file.crt</ChainCertPath>
  78.             </TLS>
  79.         </Host>
  80.         <API>
  81.             <AccessToken>ome-access-token</AccessToken>
  82.         </API>
  83.     </Managers>
  84.     -->
  85.     <VirtualHosts>
  86.         <!-- You can use wildcard like this to include multiple XMLs -->
  87.         <VirtualHost include="VHost*.xml" />
  88.         <VirtualHost>
  89.             <Name>default</Name>
  90.             <!-- Settings for multi ip/domain and TLS -->
  91.             <Host>
  92.                 <Names>
  93.                     <!-- Host names
  94.                         <Name>stream1.airensoft.com</Name>
  95.                         <Name>stream2.airensoft.com</Name>
  96.                         <Name>*.sub.airensoft.com</Name>
  97.                         <Name>192.168.0.1</Name>
  98.                     -->
  99.                     <Name>{DOMAIN}</Name>
  100.                 </Names>
  101.  
  102.                 <TLS>
  103.                     <CertPath>/etc/ssl/certs/{DOMAIN}.crt</CertPath>
  104.                     <KeyPath>/etc/ssl/certs/{DOMAIN}.key</KeyPath>
  105.                     <!-- <ChainCertPath>/etc/ssl/certs/{DOMAIN}.ca-bundle</ChainCertPath> -->
  106.                 </TLS>
  107.  
  108.             </Host>
  109.             <!-- Refer https://airensoft.gitbook.io/ovenmediaengine/signedpolicy
  110.             <SignedPolicy>
  111.                 <PolicyQueryKeyName>policy</PolicyQueryKeyName>
  112.                 <SignatureQueryKeyName>signature</SignatureQueryKeyName>
  113.                 <SecretKey>aKq#1kj</SecretKey>
  114.  
  115.                 <Enables>
  116.                     <Providers>rtmp</Providers>
  117.                     <Publishers>webrtc,hls,dash,lldash</Publishers>
  118.                 </Enables>
  119.             </SignedPolicy>
  120.             -->
  121.             <!--
  122.             <Origins>
  123.            
  124.                 <Origin>
  125.                     <Location>/app/stream</Location>
  126.                     <Pass>
  127.                         <Scheme>ovt</Scheme>
  128.                         <Urls><Url>origin.com:9000/app/stream_720p</Url></Urls>
  129.                     </Pass>
  130.                 </Origin>
  131.                 <Origin>
  132.                     <Location>/app/</Location>
  133.                     <Pass>
  134.                         <Scheme>ovt</Scheme>
  135.                         <Urls><Url>origin.com:9000/app/</Url></Urls>
  136.                     </Pass>
  137.                 </Origin>
  138.                 <Origin>
  139.                     <Location>/edge/</Location>
  140.                     <Pass>
  141.                         <Scheme>ovt</Scheme>
  142.                         <Urls><Url>origin.com:9000/app/</Url></Urls>
  143.                     </Pass>
  144.                 </Origin>
  145.             </Origins>
  146.             -->
  147.             <!-- Settings for applications -->
  148.             <Applications>
  149.                 <Application>
  150.                     <Name>app</Name>
  151.                     <!-- Application type (live/vod) -->
  152.                     <Type>live</Type>
  153.                     <!--
  154.                     <OutputProfiles>
  155.                         <OutputProfile>
  156.                             <Name>bypass_stream</Name>
  157.                             <OutputStreamName>${OriginStreamName}</OutputStreamName>
  158.                             <Encodes>
  159.                                 <Audio>
  160.                                     <Bypass>true</Bypass>
  161.                                 </Audio>
  162.                                 <Video>
  163.                                     <Bypass>true</Bypass>
  164.                                 </Video>
  165.                                 <Audio>
  166.                                     <Codec>opus</Codec>
  167.                                     <Bitrate>128000</Bitrate>
  168.                                     <Samplerate>48000</Samplerate>
  169.                                     <Channel>2</Channel>
  170.                                 </Audio>                           
  171.                                 <Video>
  172.                                     <Codec>vp8</Codec>
  173.                                     <Bitrate>1024000</Bitrate>
  174.                                     <Framerate>30</Framerate>
  175.                                     <Width>1280</Width>
  176.                                     <Height>720</Height>
  177.                                 </Video>
  178.                             </Encodes>
  179.                         </OutputProfile>
  180.                     </OutputProfiles>
  181. -->
  182.                     <OutputProfiles>
  183.                         <OutputProfile>
  184.                             <Name>bypass_stream</Name>
  185.                             <OutputStreamName>${OriginStreamName}</OutputStreamName>
  186.                             <Encodes>
  187.                                 <Audio>
  188.                                     <Bypass>true</Bypass>
  189.                                 </Audio>
  190.                                 <Video>
  191.                                     <Bypass>true</Bypass>
  192.                                 </Video>
  193.                                 <Video>
  194.                                     <Codec>vp8</Codec>
  195.                                     <Width>1280</Width>
  196.                                     <Height>720</Height>
  197.                                     <Bitrate>2000000</Bitrate>
  198.                                     <Framerate>30.0</Framerate>
  199.                                 </Video>
  200.                                 <Audio>
  201.                                     <Codec>opus</Codec>
  202.                                     <Bitrate>128000</Bitrate>
  203.                                     <Samplerate>48000</Samplerate>
  204.                                     <Channel>2</Channel>
  205.                                 </Audio>
  206.                             </Encodes>
  207.                         </OutputProfile>
  208.                     </OutputProfiles>
  209.                     <Providers>
  210.                         <OVT />
  211.                         <RTMP />
  212.                         <MPEGTS>
  213.                             <StreamMap>
  214.                                 <!--
  215.                                     Set the stream name of the client connected to the port to "stream_${Port}"
  216.                                     For example, if a client connets to port 4000, OME creates a "stream_4000" stream
  217.                                 -->
  218.                                 <Stream>
  219.                                     <Name>stream_${Port}</Name>
  220.                                     <Port>4000,4001-4004</Port>
  221.                                 </Stream>
  222.                                 <Stream>
  223.                                     <Name>stream_4005</Name>
  224.                                     <Port>4005</Port>
  225.                                 </Stream>
  226.                             </StreamMap>
  227.                         </MPEGTS>
  228.                         <RTSPPull />
  229.                     </Providers>
  230.                     <Publishers>
  231.                         <SessionLoadBalancingThreadCount>8</SessionLoadBalancingThreadCount>
  232.                         <OVT />
  233.                         <WebRTC>
  234.                             <Timeout>30000</Timeout>
  235.                         </WebRTC>
  236.                         <HLS>
  237.                             <SegmentDuration>5</SegmentDuration>
  238.                             <SegmentCount>3</SegmentCount>
  239.                             <CrossDomains>
  240.                                 <Url>*</Url>
  241.                                 <Url>https://{DOMAIN}</Url>
  242.                                 <Url>https://demo.ovenplayer.com</Url>
  243.                             </CrossDomains>
  244.                         </HLS>
  245.                         <DASH>
  246.                             <SegmentDuration>5</SegmentDuration>
  247.                             <SegmentCount>3</SegmentCount>
  248.                             <CrossDomains>
  249.                                 <Url>*</Url>
  250.                                 <Url>https://{DOMAIN}</Url>
  251.                                 <Url>https://demo.ovenplayer.com</Url>
  252.                             </CrossDomains>
  253.                         </DASH>
  254.                         <LLDASH>
  255.                             <SegmentDuration>5</SegmentDuration>
  256.                             <CrossDomains>
  257.                                 <Url>*</Url>
  258.                                 <Url>https://{DOMAIN}</Url>
  259.                                 <Url>https://demo.ovenplayer.com</Url>
  260.                             </CrossDomains>
  261.                         </LLDASH>
  262.                     </Publishers>
  263.                 </Application>
  264.             </Applications>
  265.         </VirtualHost>
  266.     </VirtualHosts>
  267. </Server>
Add Comment
Please, Sign In to add comment