Files
romm/frontend
Michael Manganiello 0fad8ac282 feat: Use nginx mod_zip to generate multi-file zip downloads
This change installs and configures the `mod_zip` nginx module [1],
which allows nginx to stream ZIP files directly.

It includes a workaround needed to correctly calculate CRC-32 values for
included files, by including a new `server` section listening at port
8081, only used for the file requests to be upstream subrequests that
correctly trigger the CRC-32 calculation logic.

Also, to be able to provide a `m3u` file generated on the fly, we add a
`/decode` endpoint fully implemented in nginx using NJS, which receives
a `value` URL param, and decodes it using base64. The decoded value is
returned as the response.

That way, the contents of the `m3u` file is base64-encoded, and set as
part of the response, for `mod_zip` to include it in the ZIP file.

[1] https://github.com/evanmiller/mod_zip
2024-08-20 22:39:33 -03:00
..
2024-02-07 18:26:15 +01:00
2024-06-02 11:25:59 -04:00
2024-06-02 14:08:28 -04:00
2024-06-02 19:20:59 -04:00
2024-05-31 18:42:43 -04:00
2024-05-21 10:18:13 -04:00
2024-08-19 23:23:45 -04:00
2024-07-29 23:17:45 -04:00