GitbookIO / nuts

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
http://nuts.gitbook.com
Apache License 2.0
1.25k stars 299 forks source link

Can't get working for my github enterprise account #137

Open lotheren opened 7 years ago

lotheren commented 7 years ago

Should this work out of the box or is there some extra settings I need to change to get this working for github enterprise? I am getting a 'GitHubError: Error 406' response when I try to run npm start.

felipemullen commented 1 year ago

This is a very old issue, but here is some information. I am trying to get it working for enterprise as well, and the underlying problem is with octocat. The version installed in Nuts is 0.10.2, but there is a fix mentioned in https://github.com/SamyPesse/octocat.js/pull/7, which would be 0.11.1.

Will comment when I find a reasonable solution

felipemullen commented 1 year ago

ok, a simple npm i octocat@0.11 gets me up and running with enterprise configuration. For future internet users, here is how I am running the server

export PORT=6000

export GITHUB_TOKEN=<token>
export GITHUB_ENDPOINT=https://git.<mycompany>.com/api/v3/
export GITHUB_USERNAME=<username>
export GITHUB_PASSWORD=<password>

export GITHUB_REPO=<myorg>/<myrepo>
export API_USERNAME=<apiusername>
export API_PASSWORD=<apipassword>
export TRUST_PROXY=loopback
npm start