创建新仓库
This commit is contained in:
69
yjearth4_0/conf/lalmax.conf.json
Normal file
69
yjearth4_0/conf/lalmax.conf.json
Normal file
@ -0,0 +1,69 @@
|
||||
{
|
||||
"srt_config": {
|
||||
"enable": true,
|
||||
"addr": ":6001"
|
||||
},
|
||||
"rtc_config": {
|
||||
"enable": true,
|
||||
"ice_host_nat_to_ips": [],
|
||||
"ice_udp_mux_port": 4888,
|
||||
"ice_tcp_mux_port": 4888
|
||||
},
|
||||
"http_config": {
|
||||
"http_listen_addr": ":1290",
|
||||
"enable_https": false,
|
||||
"https_listen_addr": ":1233",
|
||||
"https_cert_file": "./conf/cert.pem",
|
||||
"https_key_file": "./conf/key.pem",
|
||||
"ctrl_auth_whitelist": {
|
||||
"ips": [],
|
||||
"secrets": []
|
||||
}
|
||||
},
|
||||
"httpfmp4_config": {
|
||||
"enable": true
|
||||
},
|
||||
"hls_config": {
|
||||
"enable": true
|
||||
},
|
||||
"hook_config": {
|
||||
"gop_cache_num": 1,
|
||||
"single_gop_max_frame_num": 0
|
||||
},
|
||||
"gb28181_config": {
|
||||
"enable": true,
|
||||
"serial": "34020000002000000001",
|
||||
"realm": "3402000000",
|
||||
"sip_ip": "192.168.254.165",
|
||||
"sip_port": 15060,
|
||||
"username": "",
|
||||
"media_config": {
|
||||
"media_ip": "192.168.254.165"
|
||||
},
|
||||
"quick_login": true
|
||||
},
|
||||
"onvif_config": {
|
||||
"enable": true
|
||||
},
|
||||
"room_config": {
|
||||
"enable": true,
|
||||
"api_key": "lalmaxkey",
|
||||
"api_secret": "lalmaxsecret"
|
||||
},
|
||||
"server_id": "1",
|
||||
"http_notify": {
|
||||
"enable": false,
|
||||
"update_interval_sec": 5,
|
||||
"on_update": "http://127.0.0.1:10101/on_update",
|
||||
"on_pub_start": "http://127.0.0.1:10101/on_pub_start",
|
||||
"on_pub_stop": "http://127.0.0.1:10101/on_pub_stop",
|
||||
"on_sub_start": "http://127.0.0.1:10101/on_sub_start",
|
||||
"on_sub_stop": "http://127.0.0.1:10101/on_sub_stop",
|
||||
"on_relay_pull_start": "http://127.0.0.1:10101/on_relay_pull_start",
|
||||
"on_relay_pull_stop": "http://127.0.0.1:10101/on_relay_pull_stop",
|
||||
"on_rtmp_connect": "http://127.0.0.1:10101/on_rtmp_connect",
|
||||
"on_server_start": "http://127.0.0.1:10101/on_server_start",
|
||||
"on_hls_make_ts": "http://127.0.0.1:10101/on_hls_make_ts"
|
||||
},
|
||||
"lal_config_path:": "./conf/lalserver.conf.json"
|
||||
}
|
130
yjearth4_0/conf/lalserver.conf.json
Normal file
130
yjearth4_0/conf/lalserver.conf.json
Normal file
@ -0,0 +1,130 @@
|
||||
{
|
||||
"# doc of config": "https://pengrl.com/lal/#/ConfigBrief",
|
||||
"conf_version": "v0.4.1",
|
||||
"rtmp": {
|
||||
"enable": true,
|
||||
"addr": ":19135",
|
||||
"rtmps_enable": false,
|
||||
"rtmps_addr": ":4935",
|
||||
"rtmps_cert_file": "./conf/cert.pem",
|
||||
"rtmps_key_file": "./conf/key.pem",
|
||||
"gop_num": 0,
|
||||
"single_gop_max_frame_num": 0,
|
||||
"merge_write_size": 0
|
||||
},
|
||||
"in_session": {
|
||||
"add_dummy_audio_enable": false,
|
||||
"add_dummy_audio_wait_audio_ms": 150
|
||||
},
|
||||
"default_http": {
|
||||
"http_listen_addr": ":8080",
|
||||
"https_listen_addr": ":4433",
|
||||
"https_cert_file": "./conf/cert.pem",
|
||||
"https_key_file": "./conf/key.pem"
|
||||
},
|
||||
"httpflv": {
|
||||
"enable": false,
|
||||
"enable_https": false,
|
||||
"url_pattern": "/",
|
||||
"gop_num": 0,
|
||||
"single_gop_max_frame_num": 0
|
||||
},
|
||||
"hls": {
|
||||
"enable": false,
|
||||
"enable_https": false,
|
||||
"url_pattern": "/hls/",
|
||||
"out_path": "./lal_record/hls/",
|
||||
"fragment_duration_ms": 3000,
|
||||
"fragment_num": 6,
|
||||
"delete_threshold": 6,
|
||||
"cleanup_mode": 1,
|
||||
"use_memory_as_disk_flag": false,
|
||||
"sub_session_timeout_ms": 30000,
|
||||
"sub_session_hash_key": ""
|
||||
},
|
||||
"httpts": {
|
||||
"enable": false,
|
||||
"enable_https": false,
|
||||
"url_pattern": "/",
|
||||
"gop_num": 0,
|
||||
"single_gop_max_frame_num": 0
|
||||
},
|
||||
"rtsp": {
|
||||
"enable": false,
|
||||
"addr": ":5544",
|
||||
"rtsps_enable": false,
|
||||
"rtsps_addr": ":5322",
|
||||
"rtsps_cert_file": "./conf/cert.pem",
|
||||
"rtsps_key_file": "./conf/key.pem",
|
||||
"out_wait_key_frame_flag": true,
|
||||
"auth_enable": false,
|
||||
"auth_method": 1,
|
||||
"username": "q191201771",
|
||||
"password": "pengrl"
|
||||
},
|
||||
"record": {
|
||||
"enable_flv": false,
|
||||
"flv_out_path": "./lal_record/flv/",
|
||||
"enable_mpegts": false,
|
||||
"mpegts_out_path": "./lal_record/mpegts"
|
||||
},
|
||||
"relay_push": {
|
||||
"enable": false,
|
||||
"addr_list":[
|
||||
]
|
||||
},
|
||||
"static_relay_pull": {
|
||||
"enable": false,
|
||||
"addr": ""
|
||||
},
|
||||
"http_api": {
|
||||
"enable": true,
|
||||
"addr": ":18083"
|
||||
},
|
||||
"server_id": "1",
|
||||
"http_notify": {
|
||||
"enable": false,
|
||||
"update_interval_sec": 5,
|
||||
"on_update": "http://127.0.0.1:8895/yjearth4.0/api/v1/device/camera/onvif/on_update",
|
||||
"on_pub_start": "http://127.0.0.1:10101/on_pub_start",
|
||||
"on_pub_stop": "http://127.0.0.1:10101/on_pub_stop",
|
||||
"on_sub_start": "http://127.0.0.1:10101/on_sub_start",
|
||||
"on_sub_stop": "http://127.0.0.1:10101/on_sub_stop",
|
||||
"on_relay_pull_start": "http://127.0.0.1:8895/yjearth4.0/api/v1/device/camera/onvif/on_relay_pull_start",
|
||||
"on_relay_pull_stop": "http://127.0.0.1:8895/yjearth4.0/api/v1/device/camera/onvif/on_relay_pull_stop",
|
||||
"on_rtmp_connect": "http://127.0.0.1:10101/on_rtmp_connect",
|
||||
"on_server_start": "http://127.0.0.1:10101/on_server_start",
|
||||
"on_hls_make_ts": "http://127.0.0.1:10101/on_hls_make_ts"
|
||||
},
|
||||
"simple_auth": {
|
||||
"key": "q191201771",
|
||||
"dangerous_lal_secret": "pengrl",
|
||||
"pub_rtmp_enable": false,
|
||||
"sub_rtmp_enable": false,
|
||||
"sub_httpflv_enable": false,
|
||||
"sub_httpts_enable": false,
|
||||
"pub_rtsp_enable": false,
|
||||
"sub_rtsp_enable": false,
|
||||
"hls_m3u8_enable": false
|
||||
},
|
||||
"pprof": {
|
||||
"enable": false,
|
||||
"addr": ":8084"
|
||||
},
|
||||
"log": {
|
||||
"level": 1,
|
||||
"filename": "./static/log/lalserver.log",
|
||||
"is_to_stdout": true,
|
||||
"is_rotate_daily": true,
|
||||
"short_file_flag": true,
|
||||
"timestamp_flag": true,
|
||||
"timestamp_with_ms_flag": true,
|
||||
"level_flag": true,
|
||||
"assert_behavior": 1
|
||||
},
|
||||
"debug": {
|
||||
"log_group_interval_sec": 30,
|
||||
"log_group_max_group_num": 10,
|
||||
"log_group_max_sub_num_per_group": 10
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user