I did, but it’s a bit different on my scenario.
I’d like to use HAProxy as SSL Offload, I followed your suggestion about customising Nginx with “proxy_pass” to https for exemple I got this before :
==> /opt/kaltura/log/kaltura_nginx_access.log <==
172.16.0.253 - - [15/Jun/2020:18:36:08 +0200] "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_sektb0kw/name/a.mp4/index.m3u8 HTTP/1.1" 404 375 0.002 "https://media.ouivid.com/apps/studio/v2.2.1/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36" "-" - "-" "vod.ouivid.com" 22112 - - 606 "-" "80.15.149.130" "-" "-" "-" 2634
==> /opt/kaltura/log/kaltura_nginx_errors.log <==
2020/06/15 18:36:08 [error] 22112#22112: *2634 upstream prematurely closed connection while reading response header from upstream, client: 172.16.0.253, server: vod.ouivid.com, request: "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_sektb0kw/name/a.mp4/index.m3u8 HTTP/1.1", subrequest: "/kalapi_proxy/hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_sektb0kw/name/a.mp4", upstream: "http://80.15.149.130:443/hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_sektb0kw/name/a.mp4?pathOnly=1", host: "vod.ouivid.com", referrer: "https://media.ouivid.com/apps/studio/v2.2.1/index.html"
2020/06/15 18:36:08 [error] 22112#22112: *2634 open() "/etc/nginx/html/50x.html" failed (2: No such file or directory), client: 172.16.0.253, server: vod.ouivid.com, request: "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_sektb0kw/name/a.mp4/index.m3u8 HTTP/1.1", host: "vod.ouivid.com", referrer: "https://media.ouivid.com/apps/studio/v2.2.1/index.html"
But now I still have :
==> /opt/kaltura/log/kaltura_nginx_errors.log <==
2020/06/15 18:44:10 [error] 24210#24210: *11 ngx_http_vod_hls_parse_uri_file_name: unidentified request, client: 172.16.0.253, server: vod.ouivid.com, request: "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_cef8wgxi/name/a.mp4?pathOnly=1 HTTP/1.0", host: "vod.ouivid.com", referrer: "https://media.ouivid.com/apps/studio/v2.2.1/index.html"
==> /opt/kaltura/log/kaltura_nginx_access.log <==
172.16.0.253 - - [15/Jun/2020:18:44:10 +0200] "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_cef8wgxi/name/a.mp4?pathOnly=1 HTTP/1.0" 400 713 0.000 "https://media.ouivid.com/apps/studio/v2.2.1/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36" "-" - "-" "vod.ouivid.com" 24210 - - 556 "-" "80.15.149.130, 80.15.149.130" "-" "-" "-" 11
==> /opt/kaltura/log/kaltura_nginx_errors.log <==
2020/06/15 18:44:10 [error] 24210#24210: *1 ngx_child_request_wev_handler: upstream returned a bad status 400 while sending to client, client: 172.16.0.253, server: vod.ouivid.com, request: "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_cef8wgxi/name/a.mp4/index.m3u8 HTTP/1.1", host: "vod.ouivid.com", referrer: "https://media.ouivid.com/apps/studio/v2.2.1/index.html"
2020/06/15 18:44:10 [error] 24210#24210: *1 open() "/etc/nginx/html/50x.html" failed (2: No such file or directory), client: 172.16.0.253, server: vod.ouivid.com, request: "GET /hls/p/102/sp/10200/serveFlavor/entryId/0_9le3e0go/v/2/ev/7/flavorId/0_cef8wgxi/name/a.mp4/index.m3u8 HTTP/1.1", host: "vod.ouivid.com", referrer: "https://media.ouivid.com/apps/studio/v2.2.1/index.html"
From the BDD, I think it’s all right :
MariaDB [kaltura]> select id,name,url,host_name from delivery_profile;
+------+------------------------------------------------+------------------------------+----------------+
| id | name | url | host_name |
+------+------------------------------------------------+------------------------------+----------------+
| 1 | Default HTTP Delivery Profile | media.ouivid.com | NULL |
| 2 | Default HTTP Delivery Profile | media.ouivid.com | NULL |
| 3 | Default HLS Live Delivery Profile | NULL | NULL |
| 4 | Default HLS Network Live Delivery Profile | NULL | NULL |
| 5 | Default HLS To Multicast Live Delivery Profile | NULL | NULL |
| 301 | Default MPEG-DASH Live Delivery Profile | NULL | NULL |
| 302 | Default HD Network Live Delivery Profile | NULL | NULL |
| 303 | Default HDS Live Delivery Profile | NULL | NULL |
| 304 | Kaltura Live Packager Dash segmentation | vod.ouivid.com:443/live/dash | vod.ouivid.com |
| 305 | Kaltura Live Packager HDS segmentation | vod.ouivid.com:443/live/hds | vod.ouivid.com |
| 306 | Kaltura Live Packager HLS segmentation | vod.ouivid.com:443/live/hls | vod.ouivid.com |
| 307 | Kaltura Live Packager MSS segmentation | vod.ouivid.com:443/live/mss | vod.ouivid.com |
| 308 | Default RTMP Live Delivery Profile | NULL | NULL |
| 1001 | Kaltura HLS segmentation | vod.ouivid.com:443/hls | vod.ouivid.com |
| 1002 | Kaltura HDS segmentation | vod.ouivid.com:443/hds | vod.ouivid.com |
| 1003 | Kaltura DASH segmentation | vod.ouivid.com:443/dash | vod.ouivid.com |
+------+------------------------------------------------+------------------------------+----------------+
16 rows in set (0.01 sec)