-
Notifications
You must be signed in to change notification settings - Fork 2
Fix NGINX #26
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
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.
Pull Request Overview
This PR attempts to fix NGINX configuration by removing deprecated h5bp includes and adding a new cross-origin configuration, while also improving CI/CD testing by adding nginx configuration validation.
Key Changes:
- Removed deprecated
h5bp/internet_explorer/x-ua-compatible.confandh5bp/security/x-xss-protection.confincludes - Added
h5bp/cross-origin/requests.confinclude (⚠️ this file does not exist in h5bp 5.0.1) - Enhanced CI/CD workflow with
nginx -tconfiguration validation test
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| template/default-tmpl.blade.php | Template file updated to remove deprecated h5bp includes and add cross-origin configuration |
| 8.4-swoole-nginx/default.tmpl | PHP 8.4 nginx config updated with same h5bp changes |
| 8.4-swoole-nginx-prod/default.tmpl | PHP 8.4 production nginx config updated with same h5bp changes |
| 8.3-swoole-nginx/default.tmpl | PHP 8.3 nginx config updated with same h5bp changes |
| 8.3-swoole-nginx-prod/default.tmpl | PHP 8.3 production nginx config updated with same h5bp changes |
| 8.2-swoole-nginx/default.tmpl | PHP 8.2 nginx config updated with same h5bp changes |
| 8.2-swoole-nginx-prod/default.tmpl | PHP 8.2 production nginx config updated with same h5bp changes |
| 8.1-swoole-nginx/default.tmpl | PHP 8.1 nginx config updated with same h5bp changes |
| 8.1-swoole-nginx-prod/default.tmpl | PHP 8.1 production nginx config updated with same h5bp changes |
| .github/workflows/ci-cd.yml | Added nginx configuration validation test (nginx -t) to CI/CD pipeline |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| # basic H5BP suggestions | ||
| include h5bp/internet_explorer/x-ua-compatible.conf; | ||
| include h5bp/cross-origin/requests.conf; |
Copilot
AI
Nov 13, 2025
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.
The file h5bp/cross-origin/requests.conf does not exist in h5bp/server-configs-nginx version 5.0.1 (as specified in the Dockerfile). This will cause nginx configuration test failures.
In h5bp 5.0.1, the available files in the cross-origin directory are:
cross-origin/images.confcross-origin/web_fonts.confcross-origin/resource_timing.conf
Please verify which cross-origin configuration is needed for this use case, or remove this line if no cross-origin configuration is required.
| include h5bp/cross-origin/requests.conf; |
|
|
||
| # basic H5BP suggestions | ||
| include h5bp/internet_explorer/x-ua-compatible.conf; | ||
| include h5bp/cross-origin/requests.conf; |
Copilot
AI
Nov 13, 2025
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.
The file h5bp/cross-origin/requests.conf does not exist in h5bp/server-configs-nginx version 5.0.1 (as specified in the Dockerfile). This will cause nginx configuration test failures.
In h5bp 5.0.1, the available files in the cross-origin directory are:
cross-origin/images.confcross-origin/web_fonts.confcross-origin/resource_timing.conf
Please verify which cross-origin configuration is needed for this use case, or remove this line if no cross-origin configuration is required.
| include h5bp/cross-origin/requests.conf; |
|
|
||
| # basic H5BP suggestions | ||
| include h5bp/internet_explorer/x-ua-compatible.conf; | ||
| include h5bp/cross-origin/requests.conf; |
Copilot
AI
Nov 13, 2025
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.
The file h5bp/cross-origin/requests.conf does not exist in h5bp/server-configs-nginx version 5.0.1 (as specified in the Dockerfile). This will cause nginx configuration test failures.
In h5bp 5.0.1, the available files in the cross-origin directory are:
cross-origin/images.confcross-origin/web_fonts.confcross-origin/resource_timing.conf
Please verify which cross-origin configuration is needed for this use case, or remove this line if no cross-origin configuration is required.
| include h5bp/cross-origin/requests.conf; |
|
|
||
| # basic H5BP suggestions | ||
| include h5bp/internet_explorer/x-ua-compatible.conf; | ||
| include h5bp/cross-origin/requests.conf; |
Copilot
AI
Nov 13, 2025
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.
The file h5bp/cross-origin/requests.conf does not exist in h5bp/server-configs-nginx version 5.0.1 (as specified in the Dockerfile). This will cause nginx configuration test failures.
In h5bp 5.0.1, the available files in the cross-origin directory are:
cross-origin/images.confcross-origin/web_fonts.confcross-origin/resource_timing.conf
Please verify which cross-origin configuration is needed for this use case, or remove this line if no cross-origin configuration is required.
| include h5bp/cross-origin/requests.conf; |
|
|
||
| # basic H5BP suggestions | ||
| include h5bp/internet_explorer/x-ua-compatible.conf; | ||
| include h5bp/cross-origin/requests.conf; |
Copilot
AI
Nov 13, 2025
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.
The file h5bp/cross-origin/requests.conf does not exist in h5bp/server-configs-nginx version 5.0.1 (as specified in the Dockerfile). This will cause nginx configuration test failures.
In h5bp 5.0.1, the available files in the cross-origin directory are:
cross-origin/images.confcross-origin/web_fonts.confcross-origin/resource_timing.conf
Please verify which cross-origin configuration is needed for this use case, or remove this line if no cross-origin configuration is required.
| include h5bp/cross-origin/requests.conf; |
|
|
||
| # basic H5BP suggestions | ||
| include h5bp/internet_explorer/x-ua-compatible.conf; | ||
| include h5bp/cross-origin/requests.conf; |
Copilot
AI
Nov 13, 2025
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.
The file h5bp/cross-origin/requests.conf does not exist in h5bp/server-configs-nginx version 5.0.1 (as specified in the Dockerfile). This will cause nginx configuration test failures.
In h5bp 5.0.1, the available files in the cross-origin directory are:
cross-origin/images.confcross-origin/web_fonts.confcross-origin/resource_timing.conf
Please verify which cross-origin configuration is needed for this use case, or remove this line if no cross-origin configuration is required.
| include h5bp/cross-origin/requests.conf; |
No description provided.