V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MinonHeart
V2EX  ›  分享发现

GitHub 自定义域名可以使用 https 啦

  •  1
     
  •   MinonHeart · 2018-03-03 21:07:48 +08:00 · 7650 次点击
    这是一个创建于 2235 天前的主题,其中的信息可能已经有所发展或是发生改变。
    意不意外

    还有其他的仓库可以设置独立的 Custom domain 了

    图例

    63 条回复    2018-03-05 19:31:45 +08:00
    geelaw
        1
    geelaw  
       2018-03-03 21:12:23 +08:00 via iPhone
    赞(可以考虑关掉 Cloudflare 啦
    awing
        2
    awing  
       2018-03-03 21:14:53 +08:00
    什么时候的事???前几天还不可以那???
    input2output
        3
    input2output  
       2018-03-03 21:18:59 +08:00
    嗯?我们不是用的一个 GitHub ?
    https://s18.postimg.org/42tx0w5vt/image.png
    awing
        4
    awing  
       2018-03-03 21:21:53 +08:00
    分明是不可以啊???。。。。。什么情况
    xupefei
        5
    xupefei  
       2018-03-03 21:22:38 +08:00
    LZ 是在上面的文本框里自己输入了一个网址吧。注意他截图里的
    他没有用自定义域名。
    input2output
        6
    input2output  
       2018-03-03 21:23:41 +08:00
    @xupefei #5 是的
    input2output
        7
    input2output  
       2018-03-03 21:25:03 +08:00
    @xupefei #5 好吧,不是,https://s18.postimg.org/5vwtpb6ix/image.png
    我的也是这样
    xupefei
        8
    xupefei  
       2018-03-03 21:26:17 +08:00
    @input2output #7 你刷新一下再看看
    MinonHeart
        9
    MinonHeart  
    OP
       2018-03-03 21:26:32 +08:00
    @xupefei
    @input2output 你可以访问网站,查 dns 解析啊
    @awing 不明,你用非根域试试
    MinonHeart
        10
    MinonHeart  
    OP
       2018-03-03 21:29:30 +08:00
    input2output
        11
    input2output  
       2018-03-03 21:30:11 +08:00   ❤️ 1
    @xupefei #8 我特地用了一个我没用过的 Github 账号开了一个 GitHUb pages (刚刚), 然后
    https://s18.postimg.org/7ayee7fdl/image.png
    还是没用……
    难道,GitHub 只给部分用户测试?
    input2output
        12
    input2output  
       2018-03-03 21:31:53 +08:00
    @MinonHeart #10 是的,我知道,#5 的那个是错的,但是我用我自己账号测了一下,我的三个 GitHUb 账号都不能自定义域名用 HTTPS ……
    xupefei
        13
    xupefei  
       2018-03-03 21:33:22 +08:00
    神奇,竟然还是 LetsEncrypt 的证书,而且还是 2 月 28 号签的。
    xupefei
        14
    xupefei  
       2018-03-03 21:36:45 +08:00
    yech1990
        15
    yech1990  
       2018-03-03 21:41:53 +08:00 via Android
    今天刚配置了域名,我还以为一直就有这个功能。。。
    scnace
        16
    scnace  
       2018-03-03 21:43:12 +08:00 via Android
    mark 待会去看看 可以的话考虑关 CF 了
    input2output
        17
    input2output  
       2018-03-03 21:46:00 +08:00
    看来是我运气不好……
    我明天再创一个账号试试……
    yuuko
        18
    yuuko  
       2018-03-03 21:56:21 +08:00 via Android
    没中奖
    gongpeione
        19
    gongpeione  
       2018-03-03 22:01:34 +08:00
    我的不行
    kulove
        20
    kulove  
       2018-03-03 22:11:02 +08:00
    果然有,感谢~
    sobigfish
        21
    sobigfish  
       2018-03-03 22:16:02 +08:00
    用 lets Encrypt 的话 至少验证了一项域名的所属吧?难道是因为 github 的 email 和 whois 的一样?
    email dns 记录 https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7
    jingniao
        22
    jingniao  
       2018-03-03 22:25:51 +08:00
    已经切换,希望能顶住
    不过别有什么副作用啊
    Antidictator
        23
    Antidictator  
       2018-03-03 22:26:58 +08:00 via iPhone
    Mk
    cyio
        24
    cyio  
       2018-03-03 22:41:18 +08:00
    等很久了
    jmhjhjhj
        25
    jmhjhjhj  
       2018-03-03 22:42:13 +08:00 via Android
    并没有中奖,非洲大陆的日常。。。
    xpol
        26
    xpol  
       2018-03-03 22:54:47 +08:00
    对顶级域名没有要求吧?
    kmahyyg
        27
    kmahyyg  
       2018-03-04 00:01:15 +08:00 via Android
    @MinonHeart 我的可以了,自定义域名。证书是 2.28 签发的 LE
    xTom
        28
    xTom  
       2018-03-04 00:20:23 +08:00 via iPhone
    @sobigfish 不需要驗證 whois 使用 http 驗證就行了
    missdeer
        29
    missdeer  
       2018-03-04 07:48:01 +08:00
    并没有中奖,非洲大陆的日常。。。
    sdpfoue
        30
    sdpfoue  
       2018-03-04 07:53:19 +08:00
    @xupefei 是的 lets encrypt 证书,我的是 2 月 14 号签的,各种 google 也没找到答案,奇怪了一个晚上。
    tech.tjs.im
    Lax
        31
    Lax  
       2018-03-04 08:33:54 +08:00
    在 pages setting 里设置 enforce https,已经跳转

    ```
    curl http://blog.liulantao.com -LI | grep -i location

    Location: https://blog.liulantao.com/
    ```
    biuuu
        32
    biuuu  
       2018-03-04 10:01:16 +08:00
    之前用 cloudflare 的要改回来,只能换个 dns 解析服务?
    yzyun08
        33
    yzyun08  
       2018-03-04 10:07:37 +08:00
    Github 的血统验证服务?
    反正我不行
    pljhonglu
        34
    pljhonglu  
       2018-03-04 10:35:25 +08:00
    没有中奖~
    yingos
        35
    yingos  
       2018-03-04 10:46:31 +08:00
    我也没有中奖~
    leetao94
        36
    leetao94  
       2018-03-04 10:59:21 +08:00
    我的可以~~神奇
    input2output
        37
    input2output  
       2018-03-04 11:04:42 +08:00
    看来真的是 抽奖制 ……
    我以为就我一个没有
    xuyu
        38
    xuyu  
       2018-03-04 11:05:52 +08:00 via Android
    我自非洲而来
    xiaopc
        39
    xiaopc  
       2018-03-04 11:13:12 +08:00 via Android
    是不是不能用裸域啊,没有看到有裸域能开的
    coraline
        40
    coraline  
       2018-03-04 11:22:34 +08:00
    @xiaopc 貌似是部分用户有的,我的都可以

    https://mirror.am0200.com/

    https://am0200.com/
    nylqd
        41
    nylqd  
       2018-03-04 11:33:02 +08:00
    可能我也活在非洲
    loading
        42
    loading  
       2018-03-04 11:45:45 +08:00 via iPhone
    瓦坎达在我旁边……
    isnowify
        43
    isnowify  
       2018-03-04 14:39:49 +08:00
    emm 我的可以开启
    谢谢啦
    chinvo
        44
    chinvo  
       2018-03-04 15:44:10 +08:00
    不能用,看来是 AB 测试
    geeklian
        45
    geeklian  
       2018-03-04 16:03:50 +08:00 via Android
    github page 自定义域名不是早就可以搭配 cloudflare 实现 https 了么....
    SorryChen
        46
    SorryChen  
       2018-03-04 16:28:34 +08:00
    @geeklian 建议重新审题
    heiybb
        47
    heiybb  
       2018-03-04 16:50:20 +08:00 via Android
    赞 我这可以
    NickCarter
        48
    NickCarter  
       2018-03-04 18:06:57 +08:00
    这么尴尬吗...
    Enforce HTTPS — Unavailable for your site because you have a custom domain configured
    Anonym0u5
        49
    Anonym0u5  
       2018-03-04 18:07:59 +08:00 via Android
    好消息
    scnace
        50
    scnace  
       2018-03-04 18:57:21 +08:00
    @scnace 突然想起来这件事 看了下 果然还是太非了吗?
    ```
    Enforce HTTPS — Unavailable for your site because you have a custom domain configured
    ```
    chocotan
        51
    chocotan  
       2018-03-04 19:07:39 +08:00
    我的也可以~
    Caratpine
        52
    Caratpine  
       2018-03-04 20:24:31 +08:00
    并没有中奖,非洲人的日常
    xavierskip
        53
    xavierskip  
       2018-03-04 21:00:20 +08:00
    谢谢,已经开启了!
    ruanjf
        54
    ruanjf  
       2018-03-04 22:03:29 +08:00
    开启后怎么是不安全的呢?
    https://imgchr.com/i/96KiM4

    https://help.github.com/articles/securing-your-github-pages-site-with-https/

    HTTPS enforcement is required for GitHub Pages sites created after June 15, 2016 and using a github.io domain. If you created your GitHub Pages site before June 15, 2016, you can manually enable HTTPS enforcement. HTTPS is not supported for GitHub Pages using custom domains.

    这里怎么说不支持?
    ruanjf
        55
    ruanjf  
       2018-03-04 22:04:44 +08:00
    <img src="https://imgchr.com/i/96KiM4" class="embedded_image">
    ruanjf
        56
    ruanjf  
       2018-03-04 22:06:08 +08:00
    elgoog
        57
    elgoog  
       2018-03-04 22:15:14 +08:00
    @ruanjf CNAME 配置为 ruanjf.github.io 不是 com
    ruanjf
        58
    ruanjf  
       2018-03-04 22:23:17 +08:00
    @elgoog 改了不知是否要等等才生效
    ruanjf
        59
    ruanjf  
       2018-03-04 22:29:36 +08:00
    没认真看

    HTTPS enforcement is required for GitHub Pages sites created after June 15, 2016 and using a github.io domain.

    要 2016 06 15 号后和 github.io 域名
    hardman
        60
    hardman  
       2018-03-04 23:06:23 +08:00 via Android
    有很多条件
    holulu
        61
    holulu  
       2018-03-04 23:06:37 +08:00
    上个月就有用户给 github 发邮件询问情况了。应该是在内测中,不过邮件里说得好不确定。不过也有人说是想等 acme v2 上线后才正式支持。众说纷纭!
    https://github.com/isaacs/github/issues/156#issuecomment-366542067

    从已支持的域名来看,好像都是 CNAME 到*.github.io 的,支持 A 记录好像没看见。还有像 Cloudflare 那种根域 CNAME 会 flatten 成 A 记录的不知道支不支持。
    ruanjf
        62
    ruanjf  
       2018-03-05 10:57:37 +08:00
    早上起来看下 居然可以了
    terencehan
        63
    terencehan  
       2018-03-05 19:31:45 +08:00
    ![]( )
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5405 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 07:10 · PVG 15:10 · LAX 00:10 · JFK 03:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.