Migrating from nginx to openresty

566 views
Skip to first unread message

rky

unread,
Jan 18, 2022, 1:26:51 AM1/18/22
to openresty-en
Hi All,

This (https://github.com/knyar/nginx-lua-prometheus) module requires Lua support, so i have decided to migrate to openresty (from nginx). I use nginx (debian) docker image to run nginx server. Has anyone in this group has migrated from nginx to openresty. Is there any documentation which discuss about procedure or important things that one need to take care of while performing migration.

Thanks in advance.

Regards,
rky  


Piotr Przybylski

unread,
Jan 18, 2022, 6:51:13 AM1/18/22
to openresty-en
If you are using the same major version then there should be no differences. Maybe some paths in Docker will be diffrent.

jona...@findmeon.com

unread,
Jan 20, 2022, 5:48:55 PM1/20/22
to openresty-en
There shouldn't be any difference in runtime operation or configuration aside from the server headers being different.  That can trip up CI systems and other tests, but should be easy to update.

The only real differences are in planning and building:

* When you build from source or user a linux distro's binary, the default modules built by OpenResty may not match the default modules built by nginx. You should review your nginx build notes, or what the linux package maintainers build with, and then do the same for OpenResty.

* OpenResty releases are often slightly behind the Nginx release they patch, so you need to ensure any newer features you rely on from Nginx are in the currently available OpenResty version.  
Reply all
Reply to author
Forward
0 new messages