forked from AirenSoft/OvenMediaEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServer.xml
98 lines (89 loc) · 2.38 KB
/
Server.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8" ?>
<Server version="8">
<Name>OvenMediaEngine</Name>
<Type>origin</Type>
<IP>*</IP>
<!-- Settings for the ports to bind -->
<Bind>
<!-- Enable this configuration if you want to use API Server -->
<!--
<Managers>
<API>
<Port>48081</Port>
</API>
</Managers>
-->
<Providers>
<RTMP>
<Port>${env:OME_RTMP_PROV_PORT:1935}</Port>
</RTMP>
</Providers>
<Publishers>
<!-- The OVT is protocol for ORIGIN-EDGE -->
<OVT>
<Port>${env:OVT_ORIGIN_PORT:9000}</Port>
</OVT>
</Publishers>
</Bind>
<VirtualHosts>
<!--
You can include multiple XML files by doing the following:
<VirtualHost include="sites-enabled/*.xml" />
-->
<VirtualHost include="VHost*.xml" />
<VirtualHost>
<Name>default</Name>
<!-- Settings for multi ip/domain and TLS -->
<Host>
<Names>
<Name>${env:TLS_DOMAIN_NAME:oven.example.com}</Name>
</Names>
<TLS>
<CertPath>/etc/ssl/cert.crt</CertPath>
<KeyPath>/etc/ssl/key.key</KeyPath>
<!-- <ChainCertPath>/etc/ssl/chain.crt</ChainCertPath> -->
</TLS>
</Host>
<!-- Refer https://airensoft.gitbook.io/ovenmediaengine/signedpolicy
<SignedPolicy>
<PolicyQueryKeyName>${env:SIGNED_POLICY_POLICY_QUERY_KEY:policy}</PolicyQueryKeyName>
<SignatureQueryKeyName>${env:SIGNED_POLICY_SIGNATURE_QUERY_KEY:signature}</SignatureQueryKeyName>
<SecretKey>${env:SIGNED_URL_CRYPTO_KEY:aKq#1kj}</SecretKey>
<Enables>
<Providers>rtmp</Providers>
<Publishers>ovt</Publishers>
</Enables>
</SignedPolicy>
-->
<!-- Settings for applications -->
<Applications>
<Application>
<Name>app</Name>
<Type>live</Type>
<Providers>
<RTMP />
</Providers>
<OutputProfiles>
<OutputProfile>
<Name>bypass_stream</Name>
<OutputStreamName>${OriginStreamName}</OutputStreamName>
<Encodes>
<Audio>
<Bypass>true</Bypass>
</Audio>
<Video>
<Bypass>true</Bypass>
</Video>
</Encodes>
</OutputProfile>
</OutputProfiles>
<Publishers>
<SessionLoadBalancingThreadCount>${env:CPU_CORES_COUNT:2}</SessionLoadBalancingThreadCount>
<StreamLoadBalancingThreadCount>${env:CPU_CORES_COUNT:2}</StreamLoadBalancingThreadCount>
<OVT />
</Publishers>
</Application>
</Applications>
</VirtualHost>
</VirtualHosts>
</Server>