mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #2881: HTTP: Support merging api to server. v5.0.47
This commit is contained in:
parent
6508a082e9
commit
457738f6eb
34 changed files with 333 additions and 934 deletions
|
@ -12,7 +12,7 @@ http_server {
|
|||
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
listen 8080;
|
||||
}
|
||||
stats {
|
||||
network 0;
|
||||
|
|
|
@ -291,11 +291,12 @@ http_api {
|
|||
# whether http api is enabled.
|
||||
# default: off
|
||||
enabled on;
|
||||
# the http api listen entry is <[ip:]port>
|
||||
# for example, 192.168.1.100:1985
|
||||
# where the ip is optional, default to 0.0.0.0, that is 1985 equals to 0.0.0.0:1985
|
||||
# default: 1985
|
||||
listen 1985;
|
||||
# The http api listen entry is <[ip:]port>, For example, 192.168.1.100:8080, where the ip is optional, default to
|
||||
# 0.0.0.0, that is 8080 equals to 0.0.0.0:8080.
|
||||
# Note that you're able to use a dedicated port for HTTP API, such as 1985, to be different with HTTP server. In
|
||||
# this situation, you you must also set another HTTPS API port.
|
||||
# Default: 1985
|
||||
listen 8080;
|
||||
# whether enable crossdomain request.
|
||||
# default: on
|
||||
crossdomain on;
|
||||
|
@ -320,8 +321,10 @@ http_api {
|
|||
# default: off
|
||||
enabled on;
|
||||
# The listen endpoint for HTTPS API.
|
||||
# default: 1990
|
||||
listen 1990;
|
||||
# Note that you're able to use a dedicated port for HTTPS API, such as 1990, and the HTTP API should not be
|
||||
# the same of HTTP server(8080) neither.
|
||||
# Default: 1990
|
||||
listen 8088;
|
||||
# The SSL private key file, generated by:
|
||||
# openssl genrsa -out server.key 2048
|
||||
# default: ./conf/server.key
|
||||
|
|
38
trunk/conf/http.api.dedicated.conf
Normal file
38
trunk/conf/http.api.dedicated.conf
Normal file
|
@ -0,0 +1,38 @@
|
|||
# main config for srs.
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
}
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000; # UDP port
|
||||
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
hls {
|
||||
enabled on;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
rtc {
|
||||
enabled on;
|
||||
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
|
||||
rtmp_to_rtc off;
|
||||
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
|
||||
rtc_to_rtmp off;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue