sjtug / mirror-docker

Dockerfile for SJTUG mirror
https://mirrors.sjtug.sjtu.edu.cn
GNU Affero General Public License v3.0
31 stars 6 forks source link

HTTPS support? #17

Closed cnphil closed 8 years ago

cnphil commented 8 years ago

Visiting the page http://mirrors.sjtug.org/archlinux/ would encounter connection reset, even from China Telecom IPs.

philhu@philhu2 ~ $ curl ip.cn
当前 IP:180.168.218.163 来自:上海市 电信
philhu@philhu2 ~ $ curl --verbose http://mirrors.sjtug.org/archlinux/
* Hostname was NOT found in DNS cache
*   Trying 202.120.58.45...
* Connected to mirrors.sjtug.org (202.120.58.45) port 80 (#0)
> GET /archlinux/ HTTP/1.1
> User-Agent: curl/7.35.0
> Host: mirrors.sjtug.org
> Accept: */*
> 
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

Enable HTTPS to avoid this?

lv-zheng commented 8 years ago

Why reset by peers? Should we study further about the blockage?

mrmiywj commented 8 years ago

The same problem happened in HK.

lv-zheng commented 8 years ago

We should try to ping and tracepath from different places and find out why

htfy96 commented 8 years ago

If this is caused by censorship, maybe we have to import Neilpang/le as a submodule and add
commands to generate certs in prepare.sh.

htfy96 commented 8 years ago

Basic HTTPS support has been implemented on https://mirrors.sjtug.org. Pending committing changes to this repository.