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

[bitnami/nginx] stream server blocks #72353

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

TrueGameover
Copy link
Contributor

@TrueGameover TrueGameover commented Sep 11, 2024

Description of the change

Allow autoload stream servers configs from /opt/bitnami/nginx/conf/stream_server_blocks as /opt/bitnami/nginx/conf/server_blocks

Benefits

Conveniently load stream configurations. It's not available now.

Possible drawbacks

no

Applicable issues

Additional information

@github-actions github-actions bot added nginx triage Triage is needed labels Sep 11, 2024
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Sep 11, 2024
@github-actions github-actions bot removed the triage Triage is needed label Sep 11, 2024
@github-actions github-actions bot removed the request for review from javsalgar September 11, 2024 07:23
Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

Thanks so much for this PR! Please check my comments

@@ -208,6 +208,10 @@ nginx_initialize() {
fi
nginx_configure "absolute_redirect" "$(is_boolean_yes "$NGINX_ENABLE_ABSOLUTE_REDIRECT" && echo "on" || echo "off" )"
nginx_configure "port_in_redirect" "$(is_boolean_yes "$NGINX_ENABLE_PORT_IN_REDIRECT" && echo "on" || echo "off" )"

if [[ "${NGINX_ENABLE_STREAM}" != "no" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use this instead:

Suggested change
if [[ "${NGINX_ENABLE_STREAM}" != "no" ]]; then
if is_boolean_yes "$NGINX_ENABLE_STREAM"; then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I changed it

Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

Thanks so much! LGTM

@juan131 juan131 merged commit 360511e into bitnami:main Sep 13, 2024
12 checks passed
@juan131
Copy link
Contributor

juan131 commented Sep 13, 2024

@TrueGameover we just released new image versions (1.26.2-debian-12-r6 and 1.27.1-debian-12-r5) including your changes, thanks so much for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nginx solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants