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

www/nginx: plugins, bug fixes #1198

Merged
merged 9 commits into from
Feb 17, 2019
Merged

www/nginx: plugins, bug fixes #1198

merged 9 commits into from
Feb 17, 2019

Conversation

fabianfrz
Copy link
Member

@fabianfrz fabianfrz self-assigned this Feb 16, 2019
@fabianfrz fabianfrz added the feature Adding new functionality label Feb 16, 2019
@@ -5,7 +5,7 @@
<items>
<general>
<enabled type="BooleanField">
<default>0</default>
<default>1</default>
Copy link
Member

Choose a reason for hiding this comment

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

Err, what?

Copy link
Member Author

Choose a reason for hiding this comment

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

why not? It there to configure if it should serve configured services.

Copy link
Member

Choose a reason for hiding this comment

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

I don’t understand. Is this global context or not? There’s no rationale in the description to make deviation from our defaults reasonable.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it is global but it only affects configured things. For example, if a plugin adds a custom vhost, this one is still served.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, sorry, clicked resolved by accident.

This suggest the template does things in a way that makes this more convenient, but people will only take advantage of this on new plugin installs and I don’t like the idea of opt-out even though nginx must be installed willingly.

I’d rather see some other solution to the problem that is quicker to deploy and more in line with what we have elsewhere. Or dropped if that is a minor issue that is just as well documented to be the way it works.

Cc @AdSchellevis

Copy link
Member Author

Choose a reason for hiding this comment

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

@fichtner marked it as unresolved.

Currently the flag is silently ignored - 1.8 will enforce it so for new installation it will keep the behaviour. With this patch it allows the user to disable all his web pages and streams (the services itself is always enabled like haproxy because nginx is meant to become infrastructure for other plugins which need one and it will not bind anything if nothing is configured).

Copy link
Member

Choose a reason for hiding this comment

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

@fichtner @fabianfrz I don't like the idea of opt-out either, if this is a migration issue, it's probably better to solve it there. Before attaching a lot of new plugins upon this one, it might be a good idea to discuss plans first. I'm a bit worried about a whole new dependancy chain around some plugins.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should I revert this line now?

@@ -97,6 +101,16 @@ server {
set_real_ip_from {{ trusted_proxy }};
{% endfor %}
{% endif %}
{% if server.trusted_proxies_alias is defined and server.trusted_proxies_alias != '' %}
{% for trusted_proxy_uuid in server.trusted_proxies_alias.split(',') %}
Copy link
Member Author

Choose a reason for hiding this comment

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

@fichtner this way we can switch it to a select multiple if needed

www/nginx/README.md Outdated Show resolved Hide resolved
www/nginx/README.md Outdated Show resolved Hide resolved
@fabianfrz
Copy link
Member Author

@fichtner fixed the typos - the enabled flag is also reverted since your last review.

@fabianfrz fabianfrz merged commit ee14d04 into master Feb 17, 2019
@fabianfrz fabianfrz deleted the ngx_plugins branch February 17, 2019 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

Successfully merging this pull request may close these issues.

3 participants