I was getting a secret key like this: [security] SECRET_KEY = 7X Use coreutils base64 instead to get the full 256 bits of randomness.
Pushing to gogs only works if the `gogs` user's shell is `bash`. For error and solution, refer to [this SO thread](http://stackoverflow.com/a/22315659)