GOGS secret key

本小妞迷上赌 提交于 2020-01-14 03:11:05

问题


I'm trying to integrate the Drone CI server with the GOGS Git server.

There's a pretty clear document on how to do so here: http://readme.drone.io/setup/config/gogs/

...which indicates I need the following configuration:

[gogs]
url = "http://gogs.drone.io"
secret = "c0aaff74c060ff4a950d"

Where does this secret come from? I can't seem to find it in GOGS anywhere.


回答1:


That secret key "c0aaff74c060ff4a950d" seems to be the same all over the doc.
In config/github, you can see that key generated through a registration process.

Similarly, the OP Steve comments:

looks like tokens can be generated in GOGS at /user/settings/applications




回答2:


Aha! Look what I found while digging around in gogs/custom/conf/app.ini. I haven't had time to test it, but this looks to be the answer.



来源:https://stackoverflow.com/questions/32272107/gogs-secret-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!