Skip to content

Commit 84e02e4

Browse files
committed
chore: configuration for docs-preview
1 parent 6948cba commit 84e02e4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nginx.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,3 +441,15 @@ server {
441441
# Redirect rule so that /python/docs actually leads somewhere
442442
rewrite ^/python/docs/?$ /python/docs/quick-start;
443443
}
444+
445+
server {
446+
listen 80;
447+
448+
server_name pull-*.preview.docs.apify.com;
449+
450+
location / {
451+
rewrite ^/(.*)/$ https://s3.amazonaws.com/apify-docs-preview/pull-$host/$1/index.html permanent;
452+
rewrite ^/(.*[^./])$ https://s3.amazonaws.com/apify-docs-preview/pull-$host/$1.html permanent;
453+
rewrite ^/(.*)$ https://s3.amazonaws.com/apify-docs-preview/pull-$host/$1 permanent;
454+
}
455+
}

0 commit comments

Comments
 (0)