tokers / zstd-nginx-module

Nginx modules for the Zstandard compression
BSD 2-Clause "Simplified" License
196 stars 23 forks source link

How do I compile and load it as a dynamic module? #6

Open muuvmuuv opened 3 years ago

muuvmuuv commented 3 years ago

I would like to use zstd as a dynamic module like brotli, so I can load so .so in my nginx.conf. Is that possible?

tokers commented 3 years ago

@muuvmuuv Sure, PR's are welcome!

muuvmuuv commented 3 years ago

Uhh, I have really no understanding of C nor NGINX config. But from what I see in the ngx_brotli repo it just requires to be split into folders and:

have=NGX_HTTP_GZIP . auto/have
have=NGX_HTTP_BROTLI_STATIC . auto/have

https://github.com/google/ngx_brotli

I would try it myself, but I have no idea how to setup this up on macOS or how to test it.

eilandert commented 2 years ago

this should now be possible

rthamrin commented 2 years ago

how it would be possible ?