decred / dcrweb

Decred website code.
37 stars 76 forks source link

Download links for China #95

Closed jzbz closed 6 years ago

jzbz commented 7 years ago

GitHub uses AWS for serving files, so it is not possible to download anything linked on decred.org from inside China without the use of a VPN. Our Chinese users have resorted to re-hosting the binaries to get around this, however it is not ideal from a security standpoint as I'm sure few are verifying them with PGP.

If we could detect users from China and provide them with alternate download sources that would be ideal.

jcvernaleo commented 7 years ago

Is github completely blocked in china or is it just the file hosting? Just want to know if they could use PGP to verify in principle (even though I know most would not).

jzbz commented 7 years ago

GitHub is not blocked (it has been blocked on a few occasions temporarily though) the issue is AWS is blocked so everything that is hosted there is off limits.

On Jul 24, 2017 07:03, "John C. Vernaleo" notifications@github.com wrote:

Is github completely blocked in china or is it just the file hosting? Just want to know if they could use PGP to verify in principle (even though I know most would not).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/decred/dcrweb/issues/95#issuecomment-317389586, or mute the thread https://github.com/notifications/unsubscribe-auth/AEg0F-TxK8TOdcpEdFz1RZHTXBeGKqSXks5sRHoMgaJpZM4OgDtD .

jcvernaleo commented 7 years ago

Where would you suggest hosting such files? We actually end up with a lot of files up on github. So far,, all of the github releases based on my local copies:

jcv@triforce decred-releases $ du -sh
16G .
jzbz commented 7 years ago

Here are 3 options that should work:

https://www.alibabacloud.com/ https://www.ucloud.cn/ https://www.upyun.com/

Alibaba seems like the right choice since they offer an English interface and are the largest.

detailyang commented 6 years ago

@jzbz @jcvernaleo Yep, AWS is blocked at china. Your 3 options is okay to serve chinese guys. But if you just want to provide the file, i think i can help you with CDN

detailyang commented 6 years ago

Or you can consider to use alibaba CDN product for serving binary file which price is not too much.

jpz commented 6 years ago

Downloads are fairly slow in Australia also - while not super problematic (it takes about 90secs to download 70MB decrediton.dmg), a CDN would improve that by putting the data on the edge nodes - so there's some other utility in implementing a CDN for the downloads.

Is AWS Cloudfront also blocked? If it's just the github s3 buckets which are blocked, that could fix the situation.

detailyang commented 6 years ago

S3 buckets is blocked. But it looks like Cloudfront is okay now, you can easily test it by greatfirewallofchina

If some country is slow too, AWS Cloudfront it a good choice:)

jzbz commented 6 years ago

@detailyang Can you confirm weather or not our download links are working from inside China right now? Thanks.

detailyang commented 6 years ago

@jzbz It's okay now. BTW, Chinese users almost know how to use VPN else they cannot access most crypto exchanges:)