trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
240 stars 58 forks source link

Grav Container password not persistent #146

Closed AntoinePerry closed 4 years ago

AntoinePerry commented 5 years ago

Hello,

I have a grav container with git-sync. my problem is that each time the container is restarted, the password is lost and therefore no more synchronisation. Wwhere this password is saved ? thanks

w00fz commented 4 years ago

The password is stored in the user/config/plugins/git-sync.yaml ... However, it is encrypted and so it's not that easy for you to generate it manually every time.

One thing I could do is to add to the bin/plugin git-sync command a passwd (password change) that let's you properly store a new encrypted password in the config.

In the meantime, for your interest, this is how a password gets generated: https://github.com/trilbymedia/grav-plugin-git-sync/blob/develop/classes/Helper.php#L98-L101

w00fz commented 4 years ago

This will now be available as a command line bin/plugin git-sync passwd -p <your_password>