-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add nginx rockon #155
Add nginx rockon #155
Conversation
Effectively the official nginx image, but uses `/config` to hold config files, and copies `default.conf` there.
Jason, I don't know if this was an old one or one I did before but I had this in my testing folder. It's linuxserver based (which we prefer due to stability) and if you can verify it, feel free to take credit and submit it. { |
I just coppied @magicalyak's config and it seems to be working for me. I mapped a different share to /config/www to separate my config from my content. I'll also mention that there is now an official docker nginx image: https://hub.docker.com/_/nginx/ The Linuxserver.io image includes php support, so it might make more sense to name it something like php-nginx and have both available as separate rock-ons. |
@JasonTarka Thanks for the Rock-on submission and apologies for the significant delay. @magicalyak Thanks for yet another review, fancy submitting your json via another pr and giving it an appropriate linuxserver name with @nfriedly php suggestion added maybe? I'm going to label this "help wanted" as we need a consensus on where to go with it. My suggestion is we name this one after it's image at least ie: Suggestions welcome. |
Do we care about having a default config available to the user? The This rockon is using Is there any functionality within Rockons to copy files within the container, run a customer |
@phillxnet you want me to submit a new PR based on linuxserver.io or should we use this one? |
@JasonTarka Thanks for the clarification and chuffed you are still up for contributing. And yes I think we do care about providing a default config as I think many users would appreciate an 'up and running' variant to a blank / broken one. And if they can deal with a blank variant then they can also deal with a skeleton one, but the reverse is not true, ie greater target audience if we are up and running directly after install. Oh and re image selection: what @magicalyak said as they have greater experience than me in building docker images and authoring Rock-ons. However given @magicalyak offer above I think we can have both options if you are game. See later in this comment. @magicalyak Thanks for you input on this one. Much appreciated. @JasonTarka So given @magicalyak looks to be up for rolling our 'friendly' variant of nginx based on a well know docker image, maybe there is also a place for an 'advanced' official variant but with a clear indication in the Rock-on description that it is 'broken' out of the door. I.e: "This official nginx docker image based Rock-on has no default configuration and will therefore not work until one is provided within the given share (show-shares-root-mount-point-here ). Advanced nginx admin use only." type thing; or what ever better wording you can come up with. That way, if you are game, we can span the gamut. @magicalyak's friendly batteries included linuxserver.io variant and your vanilla 'no config' variant for those that wish to start from scratch using the official docker image only. Are we all agreed that these two options can co-exist as long as we name and describe them for what they are? |
Good with me, I'll create a new nginx for the linuxserver.io |
If you're okay with it not working out of the box, then I'm okay with it using the official nginx image. I can completely understand not wanting to use some random person's containers, if for no other reason than the potential security issues it could cause. I'll update this PR to change the image name, and make the description tell the user what they need to do, including a link to a sample config file they can drop in. |
@JasonTarka Thanks for your efforts on this and for accommodating the 'advanced' end of our nginx user base. Would be great to put this one to bed. |
- Reference the official image - Mount config volume at `/etc/nginx/conf.d` - Add notes about adding a default config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JasonTarka I'm hoping you are still game to get this one sorted. It sort of lost steam some where along the line, most likely due to my negligence, so I'm trying to revive it.
I've popped in a couple of suggestions so we can take it form there.
@magicalyak It's been a while but I find myself in this pr again and thought I'd drag up the following prior chat of our:
Might be nice to extend our 'developer' Rock-ons range. |
@JasonTarka we have had a potential renewed interest in this pull request from @mikey0000 in the following issue: |
Co-Authored-By: Philip Guyton <[email protected]>
This is outside the scope of this PR, but is the standard now to manually include a link to the image in the description? It feels like that's something that could (and probably should) be pulled dynamically from the |
You are correct; see Issue #31 for the history and origin for this.
That is an excellent idea and something that should be implemented. Would you mind opening an issue for that in the rockstor-core repository (as this is where the changes would need to be made)? This way we can keep track of it and make it available for somebody to start working on it if desired. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JasonTarka Sorry but my last suggestion only got us part of the way, oh and I broke the json !!
If your happy with these proposed changes I think we might be getting there finally.
And the Web-UI button:
Co-Authored-By: Philip Guyton <[email protected]>
- Remove superfluous comma - Get rid of an extra period, and make less of the text a link.
Created an issue to track this: rockstor/rockstor-core/issues/2131 |
I just realized you had pinged my on this @phillxnet and it's been a while, is the nginx proxy rockon sufficient for our needs at this point or should i push forward with the linuxserver.io one? |
@magicalyak Hello again. Re:
I think it would be great to have both this one, nearly done, and a beginner friendly linuxserver.io one as the latter would presumably run as selectable non root user with default config and PHP and what not. This one servers better those that want to use the official nginx docker image and their own or @JasonTarka example config. So if you are still game then it would be great to also have a linuxserver.io nginx one, we just need to name it accordingly as discussed earlier in this thread. Thanks for the response and being willing to submit yet another Rock-on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JasonTarka I'm pretty sure this is now sorted. Thanks for your perseverance on this and apologies for my neglecting it during our busy transition period.
And your final fix / display improvements look to have got this one ready to merge.
@JasonTarka, @FroggyFlox, @magicalyak, and @nfriedly I've now added commit bb584d2 to complement this pr's now merged json and am about to publish. Thanks to all. |
Use the official nginx image, but users will need to add a
default.conf
file to their nginx config share for the server to work. This is required as the mounted volume will shadow theconfig
directory in the container that nginx tries to read the config file from.