-
Notifications
You must be signed in to change notification settings - Fork 207
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
Extend install doc to cover nginx and improve nginx config #5232
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
@okurz you encountering the 403 error on o3 was actually an issue with the name of the virtualhost not being set properly.
|
ea5a12b
to
68eef2e
Compare
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.
Moving the config did not break the Docker test. Looks like it is using its own config under container/webui/nginx.conf
. That means we don't have a test covering the config file you're editing/moving here. Maybe we can make the Docker test use the config under etc/nginx
instead?
Packaging is done via %config(noreplace) as this should make the life easier for the operator. See https://www.cl.cam.ac.uk/~jw35/docs/rpm_config.html
3b83430
to
b6ad0bf
Compare
I had a look at the docker nginx file but this container seems to just a load balancer within a docker-compose setup. |
PR RPMs tested locally |
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.
See one online comment and also:
- Did you test on o3?
- I suggest to split the PR with first the extension to bootstrap and then in a follow-up PR the changes to nginx
yes - works fine.
I don't see much use in that. Why should the bootstrap script support things that will fail due to missing config files. |
script/openqa-bootstrap
Outdated
pgrep -f openqa-websockets-daemon >/dev/null || su geekotest -c /usr/share/openqa/script/openqa-websockets-daemon & | ||
pgrep -f openqa-gru >/dev/null || su geekotest -c /usr/share/openqa/script/openqa-gru & | ||
pgrep -f openqa-livehandler-daemon >/dev/null || su geekotest -c /usr/share/openqa/script/openqa-livehandler-daemon & | ||
if [ "$setup_web_proxy" == "nginx" ] ; then |
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.
if [ "$setup_web_proxy" == "nginx" ] ; then | |
if [[ $setup_web_proxy == nginx ]] ; then |
I can't remember I have seen this before. |
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.
I would suggest using [[ .. ]]
instead of [ ... ]
everywhere.
https://www.baeldung.com/linux/bash-single-vs-double-brackets
I second what @perlpunk said regarding |
I updated the lines that I'm adding in this file. script/configure-web-proxy is currently written in POSIX compliant sh, so shellcheck will complain about But I guess it makes sense to do the refactoring of the shell scripts to use bash internals in a separate PR. |
I created a ticket for the unrelated test failure: https://progress.opensuse.org/issues/132410 |
commit 8224eee Merge: efc15ea 4fd97ce Author: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> AuthorDate: Thu Jul 6 15:19:39 2023 +0000 Commit: GitHub <[email protected]> CommitDate: Thu Jul 6 15:19:39 2023 +0000 Merge pull request os-autoinst#5232 from asdil12/nginx Extend install doc to cover nginx and improve nginx config
Ticket: https://progress.opensuse.org/issues/131024