-
-
Notifications
You must be signed in to change notification settings - Fork 130
let oryx support external srs service #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
bd1ade4
to
d18fa2b
Compare
d18fa2b
to
a70f688
Compare
a70f688
to
0da4e53
Compare
0d5748c
to
6eae8fe
Compare
return errors.Wrapf(err, "create file %v error", tsfile) | ||
} else { | ||
defer file.Close() | ||
io.Copy(file, bytes.NewReader(data)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should revert this, because not related to external redis service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The external Redis support already supported and commit by #196, this PR was all about external SRS.
res, err := http.DefaultClient.Get(api) | ||
if err != nil { | ||
return errors.Wrapf(err, "reload srs %v", api) | ||
logger.Tf(ctx, "srs api reload error %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should revert it, for not relevant to external redis.
|
||
// below stupied code is used to resolve the code scanning error: | ||
// Uncontrolled data used in path expression | ||
allowedDir, err := os.Getwd() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should revert it for not relevant to external redis.
One PR should only fix one issue or support one feature. |
6eae8fe
to
734639a
Compare
Let Oryx can config external
Redis andSRS host.redis and srshost by env;external Redis support already supported and commit by #196, the initial comments here was so wrong.
Background
The requirement of let oryx to support external SRS was came from a k8s deployment ideas, let oryx, srs, redis run in different containers.
@see ossrs/srs-helm#8
The impact for the oryx is the record HLS ts file related features, which need to change the HLS ts segment file recording from disk file copy to http request, because oryx and srs may not share same disk.