How to setup NGINX in the Discourse Docker container

My Discourse forum is running at the address I want to set up NGINX in the Discourse Docker container and followed the instructions here
Run other websites on the same machine as Discourse
After completing the setup according to the instructions, I encountered an error “ERR_TOO_MANY_REDIRECTS”

Any suggestions or ideas to fix this?

You mean that you want to use an external nginx as a reverse proxy for some reason?

There is an nginx inside the discourse container and it is set up.

What problem are you trying to solve?

You’ll need to share more explicit details about what you did.

My desire is to use for the forum and for a HTML page.
I searched for a solution and found that I need to setup an extra nginx proxy in front of the Docker container.
I tried following the instructions above, but the result was not successful.

1 Like

See Serve Discourse from a subfolder (path prefix) instead of a subdomain.

I have read this article, and it states that it requires hosted customers at the enterprise level in order to use it. Is that correct?

Yes, that is true for hosted customers. But if you read after this:

It describes how to do it on your own server. The admonitions that it is difficult, complicated, and not really recommended are all true, however. Most everyone now agrees that there is no SEO advantage to using a subfolder.