mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
API: Support HTTP basic authentication for API. v6.0.4, v5.0.152 (#3458)
Co-authored-by: winlin <winlin@vip.126.com> Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
571043ff3d
commit
771ae0a1a6
15 changed files with 660 additions and 50 deletions
|
@ -203,6 +203,19 @@ http_api {
|
|||
# Always off by https://github.com/ossrs/srs/issues/2653
|
||||
#allow_update off;
|
||||
}
|
||||
# the auth is authentication for http api
|
||||
auth {
|
||||
# whether enable the HTTP AUTH.
|
||||
# Overwrite by env SRS_HTTP_API_AUTH_ENABLED
|
||||
# default: off
|
||||
enabled on;
|
||||
# The username of Basic authentication:
|
||||
# Overwrite by env SRS_HTTP_API_AUTH_USERNAME
|
||||
username admin;
|
||||
# The password of Basic authentication:
|
||||
# Overwrite by env SRS_HTTP_API_AUTH_PASSWORD
|
||||
password admin;
|
||||
}
|
||||
# For https_api or HTTPS API.
|
||||
https {
|
||||
# Whether enable HTTPS API.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue