Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/nginx.conf-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Nginx configuration test

on:
pull_request:
paths:
- nginx.conf

jobs:
nginx-test-job:
runs-on: ubuntu-latest
container:
image: docker.io/library/nginx:1.28.0-alpine-slim
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Test Nginx configuration
run: |
cat > default.conf <<EOF
http {
include 'nginx.conf';
}
events {}
EOF
nginx -t -c $(pwd)/default.conf
Copy link

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.

Fix in Cursor Fix in Web

2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ server {
rewrite ^/academy/get-most-of-actors$ /academy/actor-marketing-playbook permanent;

# Misc
; rewrite ^/platform/integrations/llama$ /platform/integrations/llama-index permanent;
rewrite ^/platform/integrations/llama$ /platform/integrations/llama-index permanent;

}

Expand Down
Loading