forked from kaltura/nginx-vod-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathngx_http_vod_conf.h
83 lines (70 loc) · 2.24 KB
/
ngx_http_vod_conf.h
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
#ifndef _NGX_HTTP_VOD_CONF_H_INCLUDED_
#define _NGX_HTTP_VOD_CONF_H_INCLUDED_
// includes
#include <ngx_http.h>
#include "ngx_http_vod_submodule.h"
#include "ngx_http_vod_dash_conf.h"
#include "ngx_http_vod_hds_conf.h"
#include "ngx_http_vod_hls_conf.h"
#include "ngx_http_vod_mss_conf.h"
#include "vod/segmenter.h"
// typedefs
struct ngx_http_vod_request_params_s;
struct ngx_http_vod_loc_conf_s {
// config fields
ngx_http_vod_submodule_t submodule;
ngx_str_t child_request_location;
ngx_int_t(*request_handler)(ngx_http_request_t *r);
ngx_str_t multi_uri_suffix;
segmenter_conf_t segmenter;
ngx_http_complex_value_t *secret_key;
ngx_str_t https_header_name;
ngx_str_t segments_base_url;
ngx_flag_t segments_base_url_has_scheme;
ngx_shm_zone_t* moov_cache_zone;
ngx_shm_zone_t* response_cache_zone;
size_t initial_read_size;
size_t max_moov_size;
size_t cache_buffer_size;
ngx_http_upstream_conf_t upstream;
ngx_str_t upstream_host_header;
ngx_http_complex_value_t *upstream_extra_args;
ngx_shm_zone_t* path_mapping_cache_zone;
ngx_str_t path_response_prefix;
ngx_str_t path_response_postfix;
size_t max_mapping_response_size;
ngx_http_upstream_conf_t fallback_upstream;
ngx_str_t proxy_header_name;
ngx_str_t proxy_header_value;
time_t last_modified_time;
ngx_hash_t last_modified_types;
ngx_array_t *last_modified_types_keys;
ngx_flag_t drm_enabled;
ngx_uint_t drm_clear_lead_segment_count;
ngx_http_upstream_conf_t drm_upstream;
size_t drm_max_info_length;
ngx_shm_zone_t* drm_info_cache_zone;
ngx_http_complex_value_t *drm_request_uri;
ngx_str_t clip_to_param_name;
ngx_str_t clip_from_param_name;
ngx_str_t tracks_param_name;
ngx_str_t speed_param_name;
ngx_shm_zone_t* perf_counters_zone;
#if (NGX_THREADS)
ngx_thread_pool_t *open_file_thread_pool;
#endif
// derived fields
ngx_str_t proxy_header;
ngx_hash_t uri_params_hash;
ngx_hash_t pd_uri_params_hash;
// submodules
ngx_http_vod_dash_loc_conf_t dash;
ngx_http_vod_hds_loc_conf_t hds;
ngx_http_vod_hls_loc_conf_t hls;
ngx_http_vod_mss_loc_conf_t mss;
};
typedef struct ngx_http_vod_loc_conf_s ngx_http_vod_loc_conf_t;
// globals
extern ngx_http_module_t ngx_http_vod_module_ctx;
extern ngx_command_t ngx_http_vod_commands[];
#endif // _NGX_HTTP_VOD_CONF_H_INCLUDED_