-
Notifications
You must be signed in to change notification settings - Fork 0
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
Default nginx.conf #38
Comments
@phaleth, thank you for your feedback. Good idea actually! I need to think about this :) |
Okay. it will be added during next release. Please pay attention that configuration path has been changed too: |
That was quick. Thank you, @ammnt |
We have deployed one of our sites using the freenginx image and it works quite well. Here's a little bit of a feedback. If I try to use port Would you consider moving away the server section from the default |
@phaleth, I think it doesn't make sense because you can just mount and use your own global conf file. But I want to change default internal port and use above 8080 next time. So it has been changed to 35400. |
I guess it does make sense cause now there is a server running on port 35400 for no reason and so the freenginx engine needs to make it's workers aware of that unused server. Please, take a look into what the official nginx image does by running one of those containers and checking the defaults by executing |
Also I'd rather keep the defaults from your global freenginx.conf and adjust only what's really necessary in custom nginx.conf. |
I understand what you want to do, but what if you have more than one sites? In cases like these better change listen port in |
Great. In cases you have more than one site you definitely might want to create a new file in the |
@phaleth, okay. I need to think about this. |
It's done now. |
Again, that was super quick. Thank you. @ammnt |
Any chance to provide the default
nginx.conf
such as the following one, but maybe without logs enabled by default?Also while leaving out the current server section and including the include line at the bottom so that the user of the image can copy in their own config or maybe override the
/etc/nginx/conf.d/default.conf
if it's present, as shown bellow.Very nice and compact image, btw.
Example usage would then be:
The text was updated successfully, but these errors were encountered: