问题
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