gilesknap / gphotos-sync

Google Photos and Albums backup with Google Photos Library API
Apache License 2.0
1.97k stars 161 forks source link

documentation for Synology #379

Closed bvdbos closed 1 year ago

bvdbos commented 1 year ago

With help of @brianrook on https://bullyrooks.com/index.php/2021/02/02/backing-up-google-photos-to-your-synology-nas/ I managed to setup my Synology-Synch, not a specialist in docker-things. I think it would be a good thing to expand the documentation. For one thing in the redirect-url after authentication was localhost where it should be the Synology-URL. For that to work the port had to be added to the command: sudo docker run -ti --name gphotos-sync -p 8080:8080 -v /volume3/photo/googlephotos:/storage -v /volume3/docker/gphotos-sync/config/gphotos-sync/:/config gilesknap/gphotos-sync:latest /storage and after that manually replace the localhost-url on the error-page to the url of your synology-device.

gilesknap commented 1 year ago

Hi @bvdbos. Honestly I'm surprised that your replacing of the URL worked!

The new google auth flow only supports localhost so the recommendation in the docs is to make the token on a workstation and then copy it over.

Would you be interested in contributing a short description of your steps to add to the docs. OR doing a PR?

Thanks, giles

aaccioly commented 1 year ago

I'm not OP, but the steps are:

  1. Open the browser and grant permissions as usual.
  2. When you are done the browser will redirect you to localhost:8080 with a bunch of request parameters.
  3. Since localhost:8080 isn't available in this case, the browser will return an error.
  4. Copy the entire URL from the address bar
  5. Change localhost to the desired IP / hostname keeping everything else as it is.
  6. Visit / GET the modified URL to complete the Auth flow.
bvdbos commented 1 year ago

Hi @bvdbos. Honestly I'm surprised that your replacing of the URL worked! ... Would you be interested in contributing a short description of your steps to add to the docs. OR doing a PR?

Will make a PR that but it will mostly be a blatant copy of the documentation of @brianrook if he doesn't mind :)

gilesknap commented 1 year ago

@bvdbos thanks! I suggest a separate RST dedicated to Synology.

Arn0uDz commented 1 year ago

Thanks this fixed it for me.

gilesknap commented 1 year ago

Consolidating docs issues here #417