-
Notifications
You must be signed in to change notification settings - Fork 534
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
About nginx.conf and conf.d/default.conf #90
Comments
Related to openresty/openresty#463 |
Can you paste how you are running this? |
Actually, adding
in docker-compose I was capable to use my |
The docs describe how to get your Nginx config files are handled by the image. There's various ways to handle them, depending on your setup. One of them is what you did -- specifiying your own command. If you didn't specify, then it defaults to If you are going to use your own |
Related to #91 @neomantra I did not specify, but I did add I just commented out Additionally I tried explicitly setting in
but effects were exactly the same - logs not shown until container is restarted. Then all the previous logs are spin on the screes - like they were buffered somewhere or something. And from there on logging works as it should. Is it possible that docker buffers the |
You needed to add The buffering or whatever is weird, let's try to figure it out on the other issue. |
Can I then just keep the default command and mapp my local |
Yes, exactly. If you install or bind-mount it to |
@neomantra I have removed
and used volume mount of custom This worked, and moreover - this fixed logging issue mentioned in #91 |
This part of the document is very confusing, so consider optimizing the document based on the answers here |
I no longer use OpenResty nor operate instances, so I am removed from high-quality operational discussions. But I do continue to manage the project, especially updating to new versions, watching for CVEs, etc. I'd be happy to include any documentation updates that experienced users can provide. We can discuss it in a PR. I agree the README has a lot of cruft in it! If there is a PR for a new We are near 100M image pulls and must be careful with what is released. Thanks all for your interest in progressing this. I am going to re-open this issue in this context. |
I have tried forllowing:
defult.conf
. Nothing works.server
directives from mynginx.config
todefault.conf
- now things started working. Even though I never includeddefault.conf
in mynginx.conf
.Why is this happening?
The text was updated successfully, but these errors were encountered: