StreamName
. Nor can you configure watermarking, transcoding, recording, screenshot, or porn detection tasks for the playback domain.Origin Server Information | Description |
Origin Server Type | Supports two types: Live Streaming Origin Server and StreamPackage. |
Forwarding protocol | Supports RTMP, HTTP-FLV, and HLS protocols. |
HTTPS | If the FLV or HLS protocol is used, you can enable HTTPS. If you enable HTTPS, port 443 will be used. Post-redirection HTTPS is also supported. There are no port restrictions. |
Primary origin server | The address of the primary origin server, which can be an IP address or domain. You can also configure a backup origin server. The addresses will be polled. |
Backup origin server | The address of the backup origin server (optional). |
Origin server host header | By default, the origin server address is used as the Host header if it is not configured. |
xx001.elementtest.org
as follows:
http://xx001.elementtest.org/index.m3u8
, because the resource is not yet cached in Tencent Cloud, CSS will resolve the domain test001.com
to get the server address of the origin server. Suppose it is 1.1.1.1
. CSS will access the 1.1.1.1
server, find the index.m3u8
file in the web server test002.com
, and then return the resource to the user.rtmp://Playback domain/AppName/StreamName
http://Playback domain/AppName/StreamName.flv
http://Playback domain/AppName/StreamName.m3u8
Item | Description |
Redirection | If you enable this, Tencent Cloud will not cache the 301 or 302 status code. When 301 or 302 is returned by the origin server, Tencent Cloud will automatically redirect until it obtains the requested resource (max 10 redirects) and return the resource to the user. No redirects are needed on the user end. If you disable redirection, Tencent Cloud will return the 301 or 302 status code to the user end, which will redirect to get the resource. |
Pass-through of origin server URL parameters | By default, URL parameters are not passed through. If you enable this, parameters may be added to the URL without performing URL encoding or decoding. |
HTTP request header pass-through | By default, HTTP request headers are not passed through. You can enable this to pass through the headers. Duplicate headers (case-insensitive) are not supported currently. |
HTTP response header pass-through | By default, HTTP response headers are not passed through. You can enable this to pass through the headers. Duplicate headers (case-sensitive) are supported currently. |
OPTIONS request | By default, GET request is supported, and Option request is supported after enabling it. |
When performing the origin-pull request, add the required headers to carry the client IP, port, label, etc. By default, the index request header is selected for the configuration item, with support for switching to the slice request header. Header parameter: It consists of uppercase and lowercase letters, numbers, and hyphens (-), with a length supported of 1-100 characters and no spaces allowed. Header value: Chinese characters are not supported, and it cannot start with $, with a length supported of 1-100 characters and no spaces allowed. By default, the system enables synchronization options, and automatically synchronizes index and slice request header configurations when a single addition is made. Adding multiple entries is supported, with a maximum of 10 custom origin-pull request headers for index and slice respectively. |
Item | Description |
Index file cache time | The time to cache the index file when the origin server returns the 200 status code. The default cache time is 1,000 ms. The maximum time that can be set is 60,000 ms. |
Segment cache time | The time to cache the TS/M4S/MP4 segments when the origin server returns the 200 status code. The default cache time is 1,000 ms. The maximum time that can be set is 60,000 ms. |
Cache time by status code | According to the status code corresponding to the configured cache, if the same request is received within the cache time, there is no need to visit the origin server, and the status code can be returned directly. The default cache time is 1s. When the origin server returns a non-200 status code, if it is unable to handle it immediately, and you don’t want to pass through all subsequent requests to the origin server, you can cache the status code and return it directly to the user. This can reduce the load on the origin server. Currently, the following status codes can be cached, regardless of the file type: 4XX: 400, 403, 404, 405 5XX: 500, 503, 504 |
Cache key rule configuration | For the cache key rule configuration, retain the parameters that have an impact on the resource content as the cache key, convert a category of requests for the same resource into a unified cache key and hit the same cache to improve the hit rate. File Type Choose file types. There are options of index or shard, Index is selected by default. Retain specified parameters Only English, characters and numbers can be entered. Multiple parameters are separated by ";". Up to 30 groups of parameters are supported. Each parameter name should not exceed 20 characters. If a parameter is specified, even if the parameter does not have a value, it will be cached separately from the parameters with the same name that have value. Note: You must enable the origin-pull URL parameter passthrough in HTTP settings before configuring the cache key rules. |
/test01
, the rewriting rule will be applied to all requests under /test01
. Regular expressions are not supported currently./test01/test02
, all requests under /test
will be rewritten to /test01/test02
. Regular expressions are not supported currently.Item | Description |
Connection timeout | The timeout period for establishing a TCP connection. The default time is 10,000 ms, and the value range is 2000-60000 (ms). Please set the timeout period according to your origin server conditions and network conditions. If the timeout period is too short, when a pull request fails due to network issues, CSS may switch origin servers too frequently. If the timeout period is too long, CSS may wait a long time before it tries a different origin server, causing playback failure at the client end. |
Max retries | The maximum number of retry attempts. If multiple origin server addresses have been configured, when a request fails, CSS will try a different address. Value range: 1 - 10. |
Was this page helpful?