-
Notifications
You must be signed in to change notification settings - Fork 55
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
Configure NGINX using API_ROOT & CONTENT_PATH_PREFIX #623
Conversation
images/s6_assets/template_nginx.py
Outdated
|
||
https = os.getenv("PULP_HTTPS", "false") | ||
values = { | ||
"https": https.lower() in ("true", "t", "yes", "y", "1"), |
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.
Are these values documented anywhere?
Do all the other places recognize them in the same way?
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.
No, previously we were only checking for 'true' after lower-casing.
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.
Let's just check for value of 'true' for now. i'll add a new issue to allow all our boolean settings to accept a broader set of values.
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.
Awesome! Thanks for this great feature!
I filed #624 to track the improvement for the boolean settings.
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.
This is a nice solution.
However (and this PR is not alone), it is kind of weird how we stretch the container idea. This almost looks like self modifying code.
fixes: #605