Skip to content

Commit df822c2

Browse files
authored
chore: add health check endpoint (#3273)
Adds health check endpoint, since crawlee web didn't have one.
1 parent 45ec415 commit df822c2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/deploy-nginx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
gh workflow run deploy-nginx.yml \
2020
--repo apify/apify-docs-private \
21-
--field deployment=crawlee-docs
21+
--field deployment=crawlee-web
2222
echo "✅ Deployment workflow triggered successfully"
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

website/nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
server {
44
listen 0.0.0.0:8080;
55
server_name 'crawlee.dev';
6+
7+
# Health check endpoint
8+
location /health {
9+
access_log off;
10+
return 200 '{"status":"UP"}';
11+
add_header Content-Type application/json;
12+
}
13+
614
location / {
715
proxy_pass https://apify.github.io/crawlee/;
816
}

0 commit comments

Comments
 (0)