Open super23n opened 3 years ago
I am using the nginx-flv-module and trying to decrypt a URL in a location block, and then rewriting to another location block. I'm not sure the portion of the URL gets decrypted. I am trying to watch a video, and the URL of the video looks like:
https://server/flv/1935/live/123safgfrg456563fdhd
location ~ ^/flv/1935/live/(.*)$ { secure_token_encrypt_uri on; secure_token_encrypt_uri_key 174fe5551119cb234d38012effdd6309fffffffffffff10231bbbbaaa1ede431; secure_token_encrypt_uri_iv 00000000000000000000000000000000; secure_token_query_token_expires_time 10s; secure_token_encrypt_uri_part $1; secure_token_types video/flv; rewrite /flv/1935/live/(.*)$ /flv-live?port=1935&app=live&stream=$1 last; } location /flv-live { ... }
It should work with those directives. But when I am trying to watch the video, it doesn't play. Am I doing it correctly?
nice work
I am using the nginx-flv-module and trying to decrypt a URL in a location block, and then rewriting to another location block. I'm not sure the portion of the URL gets decrypted. I am trying to watch a video, and the URL of the video looks like:
It should work with those directives. But when I am trying to watch the video, it doesn't play. Am I doing it correctly?