-
Notifications
You must be signed in to change notification settings - Fork 439
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
Mapped mode + remote isn't working, what's wrong with the config? #1546
Comments
@navarro967 thanks, changed that, but now another error, and it's trying to make some weird subrequest:
|
@leshik Could you show the current config and a response from the current json endpoint? |
vod_upstream_location /json;
vod_remote_upstream_location /media;
server {
listen 8080;
server_name _;
location /json/mapped/hls/test.json {
proxy_pass http://localhost;
proxy_redirect off;
}
location ~ /media/[^/]+/(.*) {
internal;
proxy_pass http://127.0.0.1:9000/media/$1;
}
location /hls/ {
vod hls;
vod_mode remote;
include /etc/nginx/segments.conf;
include /etc/nginx/cors.conf;
}
location /mapped/hls/ {
vod hls;
vod_mode mapped;
include /etc/nginx/segments.conf;
include /etc/nginx/cors.conf;
}
} $ curl http://localhost/json/mapped/hls/test.json
{"sequences":[{"clips":[{"type":"source","path":"http://127.0.0.1:9000/media/IMG_8707.mp4"}]}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Video files are served by Minio at
http://127.0.0.1:9000/media
.For the sake of this test,
/json/mapped/hls/test.json
returns static json:Now, the simple remote mode works fine:
But the mapped mode isn't:
curl http://localhost/mapped/hls/test.json/index.m3u8
results in 503, error.log is:JSON file is there:
What's wrong?
The text was updated successfully, but these errors were encountered: