dadatuputi / bitwarden_gcloud

Bitwarden installation optimized for Google Cloud's 'always free' e2-micro compute instance
https://bradford.la/2020/self-host-bitwarden-on-google-cloud/
MIT License
344 stars 79 forks source link

Can't get admin page enabled #69

Closed rmeekers closed 1 year ago

rmeekers commented 1 year ago

I've set this in me .env file:

SIGNUPS_ALLOWED=false
ADMIN_TOKEN=***

But I keep getting this message on the /admin page: The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it

(I've restarted the container after updating the .env file)

Any ideas?

dadatuputi commented 1 year ago

I just tested setting my ADMIN_TOKEN using the suggested openssl rand -base64 48 command and it worked as expected. It's possible that there is some base64 character that isn't playing nice with the env file / docker-compose. Try surrounding it in quotes, e.g. ADMIN_TOKEN="/nSCL3cpzzmC983FFL9fSjgzBjcX0TmBHozhQj1zH5DTEAslXiJ/HIMfhigdRwI1". You might need to pull down the latest from the repo (git pull), as well as pull the latest docker images (docker-compose pull).

rmeekers commented 1 year ago

I've followed your instructions, but without luck. The message remains.

~/bitwarden_gcloud $ docker-compose config
services:
  ...
  bitwarden:
    container_name: bitwarden
    depends_on:
    - proxy
    environment:
      ADMIN_TOKEN: Fa985w2dmOZbPmGuGsB6IC9h+0UowoUZVX4Ptmxe0zjGLl/azk/hdusNfNz5IxHG
      DOMAIN: https://bitwarden......