Skip to content

Commit 42affbc

Browse files
authored
fix: nginx configuration; add nginx linter (#1935)
1 parent be24b28 commit 42affbc

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Nginx configuration test
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- nginx.conf
7+
8+
jobs:
9+
nginx-test-job:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: docker.io/library/nginx:1.28.0-alpine-slim
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v5
16+
- name: Test Nginx configuration
17+
run: |
18+
cat > default.conf <<EOF
19+
http {
20+
include 'nginx.conf';
21+
}
22+
events {}
23+
EOF
24+
nginx -t -c $(pwd)/default.conf

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ server {
422422
rewrite ^/academy/get-most-of-actors$ /academy/actor-marketing-playbook permanent;
423423

424424
# Misc
425-
; rewrite ^/platform/integrations/llama$ /platform/integrations/llama-index permanent;
425+
rewrite ^/platform/integrations/llama$ /platform/integrations/llama-index permanent;
426426

427427
}
428428

0 commit comments

Comments
 (0)