Nginx and n8n

Hello everyone, I have n8n running in docker with an open port 5678. How can I use nginx to set authorization on it by login and password?

You do not need nginx for that. Basic auth is built into n8n as documented here:

And where to find this configuration file, where these settings need to be written, the documentation is not written

That is not a file. Those are environment variables.

Do I need to write these values into the dockerfile and build the container?
I figured it out, it should be written in the launch of the container. thanks

Happy to hear that you did figure it out. Have fun!