Skip to content

Commit 2c9d1d3

Browse files
authored
Merge pull request #95 from Kit/tests-nginx-configuration
Tests: Improve nginx configuration
2 parents eb3317a + fd94f60 commit 2c9d1d3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ jobs:
170170
location ~ \.php$ {
171171
include snippets/fastcgi-php.conf;
172172
fastcgi_pass unix:/run/php/php${{ matrix.php-versions }}-fpm.sock;
173+
174+
# Prevent 502 Bad Gateway error "upstream sent too big header while reading response header from upstream"
175+
fastcgi_buffers 16 16k;
176+
fastcgi_buffer_size 32k;
177+
fastcgi_busy_buffers_size 64k;
173178
}
174179
175180
location ~ /\.ht {
@@ -273,6 +278,13 @@ jobs:
273278
# Artifacts are data generated by this workflow that we want to access, such as log files, screenshots, HTML output.
274279
# The if: failure() directive means that this will run when the workflow fails e.g. if a test fails, which is needed
275280
# because we want to see why a test failed.
281+
- name: Upload nginx Error Log to Artifact
282+
if: failure()
283+
uses: actions/upload-artifact@v4
284+
with:
285+
name: nginx-error-log-${{ steps.test-group.outputs.value }}-${{ matrix.php-versions }}.log
286+
path: /var/log/nginx/error.log
287+
276288
- name: Upload Test Results to Artifact
277289
if: failure()
278290
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)