Open panteparak opened 5 years ago
You can see in the log the HTTP call that the module performed against the upstream:
GET /hls/faroseacademy/media/6e/9a/6e9a77615e67f4e3769d2cd84512815e.mp4 HTTP/1.1
X-Amz-Date: 20191104T041943Z
X-Amz-Content-SHA256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Authorization: AWS4-HMAC-SHA256 Credential=admin/20191104/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=226a34e60d6264f2d43a391b8e12ce5d2ab8c5d1ca94e9f34a34edb8711df7b0
Host: localhost:8088
Connection: close
User-Agent: curl/7.54.0
Range: bytes=0-4095
This is clearly wrong...
I don't think rewrite works on subrequests, you can probably just use proxy_pass http://s3/$1
instead.
The host header also seems off, don't know if Minio cares about it.
The following configuration below, are able to make request to files directly using
/files/.....
but was unsucessful for/hls/.....
anddash
, I received 502 Bad GatewayI am using Minio as my storage service with
kaltura/nginx-aws-auth-module
as s3 connector and can confirm that object is accessible bucket: faroseacademy key: media/6e/9a/6e9a77615e67f4e3769d2cd84512815e.mp4so to access the files directly the url would be
/files/faroseacademy/media/6e/9a/6e9a77615e67f4e3769d2cd84512815e.mp4
however this does not work for hls
this is the url i've tried
/hls/faroseacademy/media/6e/9a/6e9a77615e67f4e3769d2cd84512815e.mp4/master.m3u8
This is the nginx server log PasteBin
conf.d/s3.conf
vhost.d/vod.conf
vhost.d/dash.conf
vhost.d/hls.conf