Skip to content
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

Fix(nginx-config): Listen port based on nextcloud.containerPort #278

Closed

Conversation

Nold360
Copy link

@Nold360 Nold360 commented Sep 6, 2022

Signed-off-by: nold [email protected]

Pull Request

Description of the change

If nextcloud.containerPort is set, it will configure nginx to listen to the specified port.

Benefits

Allows nginx container to run rootless & follows the expected behavior of nextcloud.containerPort.

Possible drawbacks

Unexpected port change on update?!

Applicable issues

  • fixes #

Additional information

Checklist

@tvories
Copy link
Collaborator

tvories commented Sep 6, 2022

Thanks for the submission @Nold360 . can you bump the chart version?

@Nold360 Nold360 force-pushed the feat/nginx-config-containerport branch from c63f352 to c72539a Compare September 6, 2022 18:19
@Nold360
Copy link
Author

Nold360 commented Sep 6, 2022

Thanks for the submission @Nold360 . can you bump the chart version?

fixed

@relrod
Copy link

relrod commented Nov 27, 2022

+1, this seems necessary for OpenShift.

For now I've worked around this using the normal apache image, as an image stream and layered a change on top of it to make it listen on another port, but this is a much cleaner solution.

I also think the readiness and liveness probes also need to be able to have their ports configured, because that was the next issue I ran into on OpenShift. They seem to hardcode port: http right now.

@@ -44,7 +44,7 @@ data:
}

server {
listen 80;
listen {{ .Values.nextcloud.containerPort | default 80 }};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move the default value into the values file? That would make it easier to reuse for #316

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, there's 3 PRs for this that have been open for a couple of months (except mine that I opened today). @provokateurin, are you asking that that nextcloud.containerPort in values.yaml be set to 80?

@Nold360 if you don't have time, I can get this done via github suggestion commits.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't figure out how to do a suggest on a new file, so I'm modifying #384 to include this change. Will close my PR if the other PRs are moved forward first.

@jessebot
Copy link
Collaborator

This was done here: a215de8

@jessebot jessebot closed this Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants