-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support for gateway timeout setting #134
Comments
This can be achieved using custom config files: https://github.com/jwilder/nginx-proxy#custom-nginx-configuration If you want to adjust the timeout proxy-wide, add your |
You are right. But is current feature set frozen? Timeout and client_max_body_size are useful mostly for containers that manage databases, process or receive large amounts of data. Personally I spawn such containers ad-hoc to complement other containers usually they have "random" names - writing and using special configs just for such occasions seems bit tedious and requires to have mounted volume for proxy and some additional orchestration. |
Perhaps a "use template" option can be added; e.g. This will prevent people from setting these values in the global config (which is not always the smartest thing to do), but does allow to make those changes once and re-use them for multiple back ends. |
I'm not opposed to configuring more stuff from the backend container. What
|
@mishak87 You could also just create a derived image @md5 @thaJeztah Haven't thought too much about this but what about some kind of naming convention for variables that would get included in the templates if present. The format would be something like For example, I am generally opposed to adding a bunch of additional env vars since nginx has so many options but I'm not opposed to adding solutions that make the container easy to use and extend. |
I could see quoting of values being tricky or hard to explain possibly, but
your suggestion sounds fine. One other issue that comes to mind is what the
behavior should be if there are conflicting values for “http" or “server"
settings. I'd probably also use “NGINX_PROXY_" as the prefix.
|
My main idea here was to not introduce too many ENV variables; being able to create some reusable templates could possibly achieve that (just like the "per virtual host" configuration files allows). |
@jwilder I know. I created this issue to see if I am alone or it makes sense to other people aswell, before writing pull. Reusable templates would be good enough solution for my usecase. But I really like the |
I would like to have that too als ENV Variable |
Okay, guys. |
Closed in favor of #106. |
It would be useful to have option (env variable) that could turn off timeout or set it to different value.
VIRTUAL_TIMEOUT=0|<secs>
It would be useful for ie. database administration when processing time expensive queries.
The text was updated successfully, but these errors were encountered: