-
Notifications
You must be signed in to change notification settings - Fork 128
fix: nginx configuration; add nginx linter #1935
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
Conversation
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Can I get some context for this? I guess we are now validating the changes to the nginx config as part of PR checks, instead of only finding out about it in the private repository? The PR check fails now. |
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 PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Comment @cursor review
or bugbot run
to trigger another review on this PR
- name: Test Nginx configuration | ||
run: | | ||
echo "http { include 'nginx.conf'; }" > default.conf | ||
nginx -t -c $(pwd)/default.conf |
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.
Bug: Invalid Nginx Image Version & Incorrect Config Path
The Nginx configuration test workflow encounters two problems. The nginx:1.29.1-alpine-slim
Docker image version is invalid; Nginx stable versions are typically in the 1.2x.x range, preventing the image from being pulled. Also, the include 'nginx.conf'
directive uses a relative path, which Nginx resolves from its default configuration directory, not the current working directory, so it won't find the nginx.conf
file.
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Fixed. The last deployment ( https://github.com/apify/apify-docs-private/actions/runs/17827556817/job/50684203179 ) failed because of the wrong configuration introduced in #1933, thus the validation workflow :) |
No description provided.