Skip to content

Commit 2b49d92

Browse files
committed
fix: migrate hosting to Clever Cloud
1 parent e490670 commit 2b49d92

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# @isomorphic-git/cors-proxy
22

3-
This is the software running on https://git-cors-proxy.now.sh, a free
4-
service for users of isomorphic-git so you can clone and push repos in the browser.
3+
This is the software running on https://isomorphic-git-cors-proxy.cleverapps.io/ -
4+
a free service (generously sponsored by [Clever Cloud](https://www.clever-cloud.com/))
5+
for users of [isomorphic-git](https://isomorphic-git.github.io) that enables cloning and pushing repos in the browser.
56

6-
It is derived from https://github.com/wmhilton/cors-buster with added restrictions to prevent abuse.
7+
It is derived from https://github.com/wmhilton/cors-buster with added restrictions to reduce the opportunity to abuse the proxy.
8+
Namely, it blocks requests that don't look like valid git requests.
79

810
## Installation
911

index.js

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,23 @@ async function service (req, res) {
6060
let html = `<!DOCTYPE html>
6161
<html>
6262
<title>@isomorphic-git/cors-proxy</title>
63-
<h1> <a href="https://npmjs.org/package/${pkg.name}">@isomorphic-git/cors-proxy</a> </h1>
64-
This is the software running on https://git-cors-proxy.now.sh, a free service for users of isomorphic-git so you can clone and push repos in the browser.
65-
It is derived from <a href="https://github.com/wmhilton/cors-buster">cors-buster</a> with added restrictions to prevent abuse.
63+
<h1>@isomorphic-git/cors-proxy</h1>
64+
<p>This is the server software that runs on <a href="https://isomorphic-git-cors-proxy.cleverapps.io/">https://isomorphic-git-cors-proxy.cleverapps.io</a>
65+
&ndash; a free service (generously sponsored by <a href="https://www.clever-cloud.com/">Clever Cloud</a>)
66+
for users of <a href="https://isomorphic-git.github.io">isomorphic-git</a> that enables cloning and pushing repos in the browser.</p>
67+
<p>The source code is hosted on Github at <a href="https://github.com/isomorphic-git/cors-proxy">https://github.com/isomorphic-git/cors-proxy</a></p>
68+
<p>It can also be installed from npm with <code>npm install <a href="https://npmjs.org/package/${pkg.name}">@isomorphic-git/cors-proxy</a></code></p>
69+
6670
<h2>Terms of Use</h2>
6771
<p><b>This free service is provided to you AS IS with no guarantees.
6872
By using this free service, you promise not to use excessive amounts of bandwidth.
69-
This server can only support 50 gigabytes of data / month.
70-
Please clone responsibly.</b></p>
73+
</b></p>
7174
7275
<p><b>If you are cloning or pushing large amounts of data your IP address may be banned.
73-
Please run your own instance of the software (or <a href="https://opencollective.com/isomorphic-git">donate money</a> to isomorphic-git)
74-
if you need to make heavy use this service.</b></p>
76+
Please run your own instance of the software if you need to make heavy use this service.</b></p>
7577
7678
<h2>Allowed Origins</h2>
7779
This proxy allows git clone / fetch / push / getRemoteInfo requests from these domains: <code>${process.env.ALLOW_ORIGIN || '*'}</code>
78-
79-
<h2>Authenticity</h2>
80-
This is a publicly available service. As such you may wonder if it is safe to trust.
81-
You can inspect the source code that this server is running by visiting this page: <a href="/_src">/_src</a>.
82-
The deploys are immutable, so you can be sure that the code will never change.
83-
84-
<h2>Logging</h2>
85-
The cloud hosting provider keeps log of all requests. That log is public and available on this page: <a href="/_logs">/_logs</a>.
86-
It records the URL, origin IP, referer, and user-agent. None of the sensitive HTTP headers (including those used for
87-
HTTP Basic Auth and HTTP Token auth) are ever logged.
8880
</html>
8981
`
9082
return send(res, 400, html)

0 commit comments

Comments
 (0)