Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esi/Ssi Support #838

Open
DracoBlue opened this issue Feb 9, 2023 · 7 comments
Open

Esi/Ssi Support #838

DracoBlue opened this issue Feb 9, 2023 · 7 comments

Comments

@DracoBlue
Copy link

Hello,

is it possible to activate or make ssi or esi support for nginx unit?

We are currently investigating if this is possible out of the box or needs a nginx or varnish infront of the nginx unit server.

@tippexs
Copy link
Contributor

tippexs commented Feb 10, 2023

Hi @DracoBlue this is not a build in feature but we are just looking into ways of building it with NJS either on Unit with the next releases or NJS. Lets say we can use ESI on NGINX + NJS. Would that help?

@DracoBlue
Copy link
Author

This sounds good!

@DracoBlue
Copy link
Author

Just to get it right: it is already possible to use nginx+ssi natively - so ESI in NGINX is not beneficial:).

But unit with either SSI or ESI (eg by using NJS) would be awesome.

Is it possible to use njs to generate responses in nginx unit, yet? I only saw ways to generate redirects or status codes!

@tippexs
Copy link
Contributor

tippexs commented Feb 13, 2023

No we do not have any SSI support on NGINX, yet. But NJS and a js_conent block should be all we need to do here. Need some testing but I will let you know the results.

Is it possible to use njs to generate responses in nginx unit, yet? I only saw ways to generate redirects or status codes!

We are working on a rich response object for NJS on UNIT. @hongzhidao is the main engineer behind this feature. Any questions are well addressed here.

@DracoBlue
Copy link
Author

We are using the native ssi support in nginx itself: http://nginx.org/en/docs/http/ngx_http_ssi_module.html

Do you mean nginx unit? But I cannot find js_content support in nginx unit :(.

@DracoBlue
Copy link
Author

We are working on a rich response object for NJS on UNIT. @hongzhidao is the main engineer behind this feature. Any questions are well addressed here.

This sounds very nice! I did an SSI implementation in lua for a big project. So if rich response is possible with NJS on UNIT I am happy to convert it to NJS :).

@tippexs
Copy link
Contributor

tippexs commented Feb 14, 2023

Sorry yes - It was about Unit. Sorry for the confusion. I will keep you posted on the Response implemenation in NJS on Unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants