gzxultra
V2EX  ›  GitHub

自己的开源项目应该去掉调用 api 的 ak 再上传么?

  •  
  •   gzxultra · Nov 16, 2015 · 2146 views
    This topic created in 3829 days ago, the information mentioned may be changed or developed.

    如果改成

    ak="请填写自己的 ak"
    

    这样别人没法 clone 后直接运行看到效果,不太方便。
    直接贴上自己的 ak 的话又担心安全性的问题,尤其涉及到 message 这类需要付费的 api ,被别人乱玩就不好了。。。
    大家是怎么处理的呢?

    1 replies    2015-11-16 19:29:59 +08:00
    WildCat
        1
    WildCat  
       Nov 16, 2015
    copy keyfile keyfile.sample
    echo "keyfile" > .gitignore
    echo "# About keyfile ..." > README.md
    git rm --cache keyfile
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 96ms · UTC 10:50 · PVG 18:50 · LAX 03:50 · JFK 06:50
    ♥ Do have faith in what you're doing.