Dockerfile in official install instructions uses unsupported version of Nginx

AI-generated summary

A user reported that the Dockerfile in Discourse’s official self-hosted install instructions references an end-of-life version of Nginx (1.21.6), which is no longer supported davidjones. The issue was moved to the Bug category pfaffman, and Falco confirmed it was assigned to them. A new Docker image with the updated, latest Nginx version (alongside other improvements) was shipped the following week Falco. However, users running multiple reverse proxy layers are cautioned: Nginx changed how it handles duplicate headers, which may affect unusual setups despite efforts to cover common cases.

Apologies if this is not the correct place to post this. I could not create an issue on Github.

The current referenced version of Nginx in the self hosted Docker install is 1.21.6. here:

This version is end of life and no longer supported. See simplified supported version overview here:

Can this be updated to current stable 1.22 or latest 1.23?

Thanks

2 Likes

I’m moving this to bug, as it seems like something that warrants attention.

As if the link to the source wasn’t enough, I did this on a recent install:

/# nginx -v
nginx version: nginx/1.21.6
1 Like

I have this assigned to me, and it will be rolled out with a new image soon.

4 Likes

New image with latest nginx (among other things) was shipped last week.

Nginx change how multiple instances of the same header are treated, so if you are running multiple reverse proxy layers be careful with the update. We did our best to handle the common cases, but some weirder setups may be affected.

4 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.