gphotos-sync icon indicating copy to clipboard operation
gphotos-sync copied to clipboard

documentation for Synology

Open bvdbos opened this issue 2 years ago • 5 comments

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.

bvdbos avatar Aug 18 '22 07:08 bvdbos

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

gilesknap avatar Aug 19 '22 21:08 gilesknap

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.

aaccioly avatar Aug 20 '22 00:08 aaccioly

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 :)

bvdbos avatar Aug 20 '22 06:08 bvdbos

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

gilesknap avatar Aug 20 '22 08:08 gilesknap

Thanks this fixed it for me.

Arn0uDz avatar Aug 24 '22 09:08 Arn0uDz

Consolidating docs issues here #417

gilesknap avatar Mar 11 '23 10:03 gilesknap