Skip to content

Commit 22fb692

Browse files
authored
chore: move crawlee.dev server block to crawlee repo (#2116)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Removes the crawlee.dev server block from `nginx.conf` and updates CI to trigger Nginx config deployment on `master`, removing the old workflow. > > - **Nginx Configuration**: > - Remove `crawlee.dev` server block from `nginx.conf`; add note pointing to its new location in the Crawlee repo. > - **CI/CD**: > - Enable push trigger on `master` for `nginx.conf` in `.github/workflows/deploy-nginx.yml`; run external deployment via `gh workflow run` with service account token. > - Delete legacy workflow `/.github/workflows/deploy.yaml`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 802a9db. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent a523ac5 commit 22fb692

File tree

3 files changed

+7
-55
lines changed

3 files changed

+7
-55
lines changed

.github/workflows/deploy-nginx.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
name: Deploy Nginx Configuration
44

55
on:
6-
# push:
7-
# branches:
8-
# - master
9-
# paths:
10-
# - 'nginx.conf'
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- 'nginx.conf'
1111
workflow_dispatch:
1212

1313
jobs:

.github/workflows/deploy.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

nginx.conf

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -679,39 +679,8 @@ server {
679679
rewrite ^/platform/integrations/llama$ /platform/integrations/llama-index permanent;
680680
}
681681

682-
# Temporarily used to route crawlee.dev to the Crawlee GitHub pages.
683-
# TODO: create a separate nginx deployment for Crawlee and move this there.
684-
server {
685-
listen 0.0.0.0:8080;
686-
server_name 'crawlee.dev';
687-
location / {
688-
proxy_pass https://apify.github.io/crawlee/;
689-
}
690-
location /python {
691-
proxy_pass https://apify.github.io/crawlee-python/;
692-
}
693-
694-
# So that we can have both GH pages and crawlee.dev/python working and loading assets from the same path
695-
location /crawlee-python {
696-
proxy_pass https://apify.github.io/crawlee-python/;
697-
}
698-
699-
# Redirect rule for old JS docs to go under /js prefix
700-
rewrite ^/docs(.*)$ /js/docs$1 permanent;
701-
rewrite ^/api(.*)$ /js/api$1 permanent;
702-
703-
# Remove version numbers from /js/api/3.[0-9]/* and /js/docs/3.[0-9]/*
704-
rewrite ^/js/api/3\.\d(/.*)?$ /js/api$1 permanent;
705-
rewrite ^/js/docs/3\.\d(/.*)?$ /js/docs$1 permanent;
706-
707-
# Redirect rule for "upgrading-to-v03" to "upgrading-to-v0x"
708-
rewrite ^/python/docs/upgrading/upgrading-to-v03$ /python/docs/upgrading/upgrading-to-v0x permanent;
709-
710-
# Redirect rule so that /python/docs actually leads somewhere
711-
rewrite ^/python/docs/?$ /python/docs/quick-start;
712-
713-
rewrite ^/versions/?$ /js/api/core/changelog permanent;
714-
}
682+
# Note: crawlee.dev server block has been moved to crawlee repository:
683+
# https://github.com/apify/crawlee/blob/master/website/nginx.conf
715684

716685
server {
717686
listen 0.0.0.0:8080;

0 commit comments

Comments
 (0)