ttionya / vaultwarden-backup

Backup vaultwarden (formerly known as bitwarden_rs) SQLite3/PostgreSQL/MySQL/MariaDB database by rclone. (Docker)
MIT License
1.03k stars 118 forks source link

`admin_token` is not updated when changing in `docker-compose.yml` file #112

Closed quyleanh closed 1 year ago

quyleanh commented 1 year ago

I haven't update the admin_token since beginning. Now I'm using both latest vaultwarden and vaultwarden backup image with the docker-compose.yml file in this repository.

However as I check the admin_token is not updated when changing in docker-compose.yml file. There is another problem that I cannot login to admin page even when I use the correct admin_token or even when I use the secure method.

Is there anyone has the same issue? Thank you.

ttionya commented 1 year ago

Please check the config.json file, which takes precedence over the environment variables.

https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page

The first time you save a setting in the admin page, config.json will be generated in your DATA_FOLDER. Values in this file will take precedence over the corresponding environment variable.

quyleanh commented 1 year ago

Thank you for pointing it out. Even when I update the admin_token value in config.json file inside data volume, I cannot log in to admin settings interface. I don't know what happen to the hashed password. It doesn't work even when I use plaintext password.

quyleanh commented 1 year ago

Btw, I also report the problem in this discussion. Please refer if needed. Thank you.

quyleanh commented 1 year ago

The problem is I have / after /admin/ inside nginx.conf so I redirect every time access admin/ page. Removing / will solve problem. I will close this issue.