Origin.xml

Used to set the default port and default webroot of Origin Server. By default, the HTTP port is 8090 and the webroot is httporigin/webroot. This file is available in the /HttpOrigin/httporigin/conf/http directory.

<Config>

	<!--
The HTTP server listens for incoming requests on this port.
-->
	<Port>8090</Port>
	<!--
	The root folder under which content is stored.
	-->
	<Webroot>./webroot</Webroot>
	<-- This is maximum content size (in bytes) for HTTP PUT requests. This should be set to at least the maximum expected fragment size.
	<MaxContentLength>4096000</MaxContentLength>


	<!-- Response code to be returned by Origin Server for missing fragments.
	If not configured, Origin Server will return 404. Custom response code
	for missing fragments can be used to implement failover at the caching layer.-->

	<MissingFragmentResponseCode>503</MissingFragmentResponseCode>
	<!-- Specifies TTL values in integral seconds for various file types.
	When TTL value is set for a file type, then following headers are set in Http Response of corresponding file type:
       1) max-age header - set to TTL value
       2) Date header - set to response date
       3) Expires header - set to response date + TTL

	The file types supported are F4F, F4M, Bootstrap, CrossDomain, M3U8, HLSSegment, DRMMetadata, Timeline, DashSegment, DashManifest and DashManifestPart.
	-->
	<Headers>
	<TTL>
			<F4M>0</F4M>
			<Bootstrap>0</Bootstrap>
			<M3U8>0</M3U8>
			<Timeline>0</Timeline>
			<DashManifest>0</DashManifest>
			<DashManifestPart>0</DashManifestPart>
			<DRMMetadata>60</DRMMetadata>
			<F4F>60</F4F>
			<HLSSegment>60</HLSSegment>
	</TTL>
	</Headers>
</Config>