Skip to content

Commit 226965e

Browse files
committed
fix: use production URL for proxy pass
Related: #1997
1 parent a712db3 commit 226965e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
include $(pwd)/nginx.conf;
5959
}
6060
EOF
61+
sed -i 's|https://apify.github.io/apify-docs|http://localhost:3000|g' default.conf
6162
mkdir -p $(pwd)/logs
6263
nginx -c $(pwd)/default.conf
6364
sleep 1

nginx.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ server {
1414
# use 'last' to force a new location lookup so /__proxy/ handler runs
1515
rewrite ^ /__proxy/llms.txt last;
1616
}
17-
proxy_pass http://localhost:3000;
17+
proxy_pass https://apify.github.io/apify-docs;
1818
}
1919

2020
# direct llms.txt files, serve with markdown content type
2121
location ~ ^/llms(-full)?\.txt$ {
22-
proxy_pass http://localhost:3000;
22+
proxy_pass https://apify.github.io/apify-docs;
2323
proxy_hide_header Content-Type;
2424
add_header Content-Type "text/markdown; charset=utf-8" always;
2525
}
@@ -30,7 +30,7 @@ server {
3030
# rewrite to internal proxy path; use last so new location is matched
3131
rewrite ^(/[^.]+)$ /__proxy$1.md last;
3232
}
33-
proxy_pass http://localhost:3000;
33+
proxy_pass https://apify.github.io/apify-docs;
3434
}
3535

3636
# internal proxy handler that actually forces the markdown header
@@ -40,7 +40,7 @@ server {
4040
# strip the /__proxy prefix so upstream sees the real path
4141
rewrite ^/__proxy(/.*)$ $1 break;
4242

43-
proxy_pass http://localhost:3000;
43+
proxy_pass https://apify.github.io/apify-docs;
4444
proxy_hide_header Content-Type;
4545
add_header Content-Type "text/markdown; charset=utf-8" always;
4646
}

0 commit comments

Comments
 (0)