wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.21k stars 295 forks source link

build as runtime loadable module #269

Closed andrisi closed 6 years ago

andrisi commented 6 years ago

Is there a way to build nginx-push-stream-module as a runtime loadable module so that it can be used as many other modules, without recompiling the cure nginx server? Thanks!

wandenberg commented 6 years ago

Yes. The same way as other modules. Check #239

andrisi commented 6 years ago

Sorry, but brief docs would be great. After building I only find .o files, no .so ones.

andrisi commented 6 years ago

I managed to build it - still, some guidance on https://github.com/wandenberg/nginx-push-stream-module would help others. Thanks for all the great work!

seanlinsley commented 5 years ago

@andrisi how did you end up building it?

andrisi commented 5 years ago

@seanlinsley see https://www.nginx.com/resources/wiki/extending/converting/#compiling-dynamic after downloading the current nginx source, and cloning the pushstream module into a nearby directory, then running "./configure --add-dynamic-module=../nginx-push-stream-module" and "make modules" in the nginx source dir.

seanlinsley commented 5 years ago

Thanks for the update. Unfortunately I already tried that, and ran into an error that said the module wasn't binary compatible with NGINX. The only thing that's worked so far is to compile both NGINX and this module, together: https://github.com/wandenberg/nginx-push-stream-module/issues/184#issuecomment-414158118

andrisi commented 5 years ago

You need to build the module using the nginx source with the same version as the one you're trying to install it under - the one running on your system.