qdm12 / stackedit-docker

StackEdit 5.14.5 Server in a light Docker container
https://hub.docker.com/r/qmcgaw/stackedit
MIT License
42 stars 16 forks source link

How to edit Google Drive token? #1

Closed OffCorner closed 4 years ago

OffCorner commented 5 years ago

This is exactly what I have been looking for! I have managed to set up Stackedit in docker now but I'd love to configure it with Google Drive. Unfortunately, I can't seem to find any way to do this... Any help would be greatly appreciated!

qdm12 commented 5 years ago

Hi there,

It very looks like an issue with authorizing stackedit on a Google project. I'll open an issue on their Github for you and report back when I have an answer.

Thanks!

moookino commented 5 years ago

HI, @qdm12 thanks for your docker image! I think there is same issue with setting Dropbox account for selfhosted variant, where callback is needed to authorize hosted instance

qdm12 commented 4 years ago

Hi @moookino I have finally had the chance/time to have a look, and there is now the environment variables GOOGLE_CLIENT_ID and GOOGLE_API_KEY to connect to Google. Not too sure how to use them, you probably would have to setup an app on Google. There are other environment variables for Github, Dropbox etc documented in the readme.

moookino commented 4 years ago

Hi @qdm12 thanks! It works for me. Maybe for someone interested in the future. You need to setup 2 things O2Auth client to use and use it's client id Setup API key and use this key as Google API key