Skip to content

Commit 097a34d

Browse files
authored
announcement (#22)
1 parent f9ef6c7 commit 097a34d

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
author: William Hilton
3+
authorURL: https://twitter.com/wmhilton
4+
authorFBID: 551965935
5+
title: CORS proxy temporarily disabled
6+
---
7+
8+
Since the start of the isomorphic-git project, I have hosted an instance of [cors-buster proxy](https://www.npmjs.com/package/cors-buster) to
9+
get around the fact that none of the major git hosting sites use CORS headers
10+
that would allow browsers to clone. This proxy is free, [open source](https://github.com/wmhilton/cors-buster), and
11+
easy to [install](https://www.npmjs.com/package/cors-buster).
12+
13+
Unfortunately, this proxy also used a whopping 5 TERABYTES of bandwidth last month, and I got hit with a
14+
$500 charge from my favorite hosting service ever [now.sh](https://zeit.co/now). (They say they are working
15+
on making bandwidth usage more transparent... it would have been good to get a notification....)
16+
Either a lot of cloning has been going on (which is GREAT!) or somebody has discovered the proxy can be abused.
17+
Either way, paying $500/month is not within isomorphic-git's budget.
18+
19+
(You could change that! Sponsor us on [OpenCollective](https://opencollective.com/isomorphic-git)!)
20+
21+
So for now I've had to suspend the proxy until I find time to write some spiffy bandwidth-limiting logic for it.
22+
23+
Don't let this stop you from playing with isomorphic-git! Clone https://github.com/wmhilton/cors-buster, or npm install it, or
24+
deploy your own instance on Now.

website/siteConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const siteConfig = {
6363
'/js/object-inspector.min.js',
6464
'/js/tutorial.js',
6565
'/js/try-it-out-giturl.js',
66+
'/js/announcement.js',
6667
'//static.getclicky.com/js',
6768
'/js/analytics.js',
6869
'https://codefund.io/scripts/aa6eb5e6-191a-4a38-8109-63fdd08d0e58/embed.js',

website/static/js/announcement.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
document.addEventListener('DOMContentLoaded', function () {
2+
let div = document.createElement('div')
3+
div.style.background = 'rgba(255,229,100)'
4+
div.style.textAlign = 'center'
5+
div.style.color = 'black'
6+
div.style.fontSize = '20px'
7+
div.style.lineHeight = '2em'
8+
div.innerHTML = 'The CORS proxy has been temporarily suspended due to excessive bandwidth usage. The online demos will not work as a result. <a style="color: blue; display: inline; text-decoration: underline" href="/blog/2019/07/05/cors-proxy-disabled.html">Read More</a>'
9+
let header = document.getElementsByClassName('fixedHeaderContainer')[0]
10+
header.style.paddingBottom = '0'
11+
header.appendChild(div)
12+
})

0 commit comments

Comments
 (0)