-
Notifications
You must be signed in to change notification settings - Fork 60
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
not always use template after modification for nginx #107
Comments
Assigning this to @fzipi. |
Hi @studyfranco! Just a small question: did you take a look at all the nginx variables you can use? In particular, setting |
Hi @fzipi ! Yep I look they. But this is not what I need.
The second point is about the usage of the 443 and 80 port. If I want redirect by "server_name", I can because all my traffic is redirect by default. My suggestion is: remove the template file, and create a rapid bash script who check if the default.conf and the nginx.conf is here, and copy it if they are present. |
This is easy to override. You just create an environment variable called And then you just mount your own Another option is to mount that file as |
I tried this, but: A) I still want to use templates, and B) I was still hitting issues when mounting
Also, since I was mounting my own I'd love it if this image:
If there's any guidance about how to mount |
The issue is probably with the Using a new variable probably isn't the best approach though, as you might want to provide your own |
I agree, that would be a much better pattern. Although, I would personally advocate for slimming down the templates that already exist. IMO, the more aligned this image can be with the official nginx image (fewer scripts, templates, env vars), the better the experience will be and the less maintenance overhead there would be. Moving all current ENV var capabilities into templates that are included via a default |
Makes sense to be. Do you want to try sending a PR for this @tboddyspargo ? |
@fzipi - I'm afraid I can't commit to that right now. However, I spoke with my team and I have a colleague who is interested in the opportunity to contribute back to this project! He is out on leave at the moment, but if this can wait a few weeks, he can follow-up when he's back. I'll support him however I can with the implementation details. |
We're not in a rush :) Looking forward to hearing from one of you soon. |
Is there any interest in pushing this? Or do we close? |
Let's close it. I think we're going in a direction with less variables and more flexibility anyway. |
Hello,
Thank you for this hard work !
I have just an issue. I don't want use 80 and 443, and sometimes use nginx for stream.
I modify the default.conf and the nginx.conf for that. The big problem is at each start the default nginx docker copy all template files.
Is it possible to modify it for don't copy each time the template of default.conf and nginx.conf ?
Best regards
The text was updated successfully, but these errors were encountered: