Netlify-cms: Documentation on running Netlify CMS sans Netlify

Created on 11 Mar 2018  路  5Comments  路  Source: netlify/netlify-cms

I'm attempting to deploy Netlify CMS for my Hugo-driven site which lives on my own servers.

The impression I get from the docs is that I need to tie into Netlify's authentication _somehow_ or run a bunch of my own infrastruture to handle the authentication, but the extent to which isn't particularly well documented.

Is there any more information on self-hosted Netlify CMS authentication than is covered in the docs? Once I'm comfortable with the process, I'd be glad to submit a PR for a documentation page covering running Netlify CMS without depending on Netlify.

auth docs question

Most helpful comment

This has been asked about before. The problem is GitHub requires a server-side component in order to be able to do Oauth authentication. There are other implementations talked about in the Netlify CMS docs other than the git-gateway service. I used the "GitHub" backend with the node.js based GitHub auth microservice. It's ridiculously easy to deploy. I deployed a free Azure Web App then linked the GitHub repo of the node.js based auth service to the web app and then setup the environment variables with my GitHub Oath application settings. Worked the first time.

All 5 comments

This has been asked about before. The problem is GitHub requires a server-side component in order to be able to do Oauth authentication. There are other implementations talked about in the Netlify CMS docs other than the git-gateway service. I used the "GitHub" backend with the node.js based GitHub auth microservice. It's ridiculously easy to deploy. I deployed a free Azure Web App then linked the GitHub repo of the node.js based auth service to the web app and then setup the environment variables with my GitHub Oath application settings. Worked the first time.

Yep, @jmo808 is right, that's the documented approach. Closing, but comment and I'll reopen if there's anything missing here.

@erquhart, Could you provide me with the link for documentation on how to add Netlify-CMS sans Netlify?

@sachin10101998 looks like there鈥檚 a gap in the GitHub backend docs, for now I鈥檇 recommend picking an external oauth library and following their instructions, which will cover steps for authentication. Everything else works the same no matter where you deploy.

Sent with GitHawk

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TomPichaud picture TomPichaud  路  3Comments

emckay picture emckay  路  3Comments

ciokan picture ciokan  路  3Comments

ghost picture ghost  路  3Comments

calavera picture calavera  路  3Comments