Skip to content

Conversation

@dbpolito
Copy link
Member

No description provided.

Copy link

Copilot AI left a 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.conf and h5bp/security/x-xss-protection.conf includes
  • Added h5bp/cross-origin/requests.conf include (⚠️ this file does not exist in h5bp 5.0.1)
  • Enhanced CI/CD workflow with nginx -t configuration 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;
Copy link

Copilot AI Nov 13, 2025

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.conf
  • cross-origin/web_fonts.conf
  • cross-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.

Suggested change
include h5bp/cross-origin/requests.conf;

Copilot uses AI. Check for mistakes.

# basic H5BP suggestions
include h5bp/internet_explorer/x-ua-compatible.conf;
include h5bp/cross-origin/requests.conf;
Copy link

Copilot AI Nov 13, 2025

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.conf
  • cross-origin/web_fonts.conf
  • cross-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.

Suggested change
include h5bp/cross-origin/requests.conf;

Copilot uses AI. Check for mistakes.

# basic H5BP suggestions
include h5bp/internet_explorer/x-ua-compatible.conf;
include h5bp/cross-origin/requests.conf;
Copy link

Copilot AI Nov 13, 2025

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.conf
  • cross-origin/web_fonts.conf
  • cross-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.

Suggested change
include h5bp/cross-origin/requests.conf;

Copilot uses AI. Check for mistakes.

# basic H5BP suggestions
include h5bp/internet_explorer/x-ua-compatible.conf;
include h5bp/cross-origin/requests.conf;
Copy link

Copilot AI Nov 13, 2025

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.conf
  • cross-origin/web_fonts.conf
  • cross-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.

Suggested change
include h5bp/cross-origin/requests.conf;

Copilot uses AI. Check for mistakes.

# basic H5BP suggestions
include h5bp/internet_explorer/x-ua-compatible.conf;
include h5bp/cross-origin/requests.conf;
Copy link

Copilot AI Nov 13, 2025

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.conf
  • cross-origin/web_fonts.conf
  • cross-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.

Suggested change
include h5bp/cross-origin/requests.conf;

Copilot uses AI. Check for mistakes.

# basic H5BP suggestions
include h5bp/internet_explorer/x-ua-compatible.conf;
include h5bp/cross-origin/requests.conf;
Copy link

Copilot AI Nov 13, 2025

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.conf
  • cross-origin/web_fonts.conf
  • cross-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.

Suggested change
include h5bp/cross-origin/requests.conf;

Copilot uses AI. Check for mistakes.
@dbpolito dbpolito merged commit 4918470 into main Nov 13, 2025
8 checks passed
@dbpolito dbpolito deleted the nginx_fix branch November 13, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants