Skip to content

Commit 746753b

Browse files
authored
feat(ci): Add redirects for Crawlee to nginx.conf (#1088)
This adds config for handling the `crawlee.dev` domain in the Apify Docs nginx. In the future, we should separate it into a separate nginx. I've tested it locally and it seems to work when accessing the server with the right `Host` header.
1 parent dd54e3b commit 746753b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

nginx.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
server {
22
listen 0.0.0.0:8080;
3+
server_name 'docs.apify.com';
4+
35
location / {
46
proxy_pass https://apify.github.io/apify-docs/;
57
}
@@ -300,3 +302,16 @@ server {
300302
# GPT plugins were discontinued April 9th, 2024 - https://help.openai.com/en/articles/8988022-winding-down-the-chatgpt-plugins-beta
301303
rewrite ^/platform/integrations/chatgpt-plugin$ https://blog.apify.com/add-custom-actions-to-your-gpts/ redirect;
302304
}
305+
306+
# Temporarily used to route crawlee.dev to the Crawlee GitHub pages.
307+
# TODO: create a separate nginx deployment for Crawlee and move this there.
308+
server {
309+
listen 0.0.0.0:8080;
310+
server_name 'crawlee.dev';
311+
location / {
312+
proxy_pass https://apify.github.io/crawlee/;
313+
}
314+
location /python {
315+
proxy_pass https://apify.github.io/crawlee-python/;
316+
}
317+
}

0 commit comments

Comments
 (0)