# Enabling admin page

**URL:** <https://vaultwarden.discourse.group/t/enabling-admin-page/1661>\
**Category:** Help\
**Created:** [May 30, 2022, 2:35pm UTC](https://vaultwarden.discourse.group/t/enabling-admin-page/1661 "2022-05-30T14:35:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FilFer](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/filfer/32/689_2.png) [@FilFer](https://vaultwarden.discourse.group/u/FilFer)\
**Post date:** [May 30, 2022, 2:35pm UTC](https://vaultwarden.discourse.group/t/enabling-admin-page/1661/1 "2022-05-30T14:35:50Z")

</div>

Hello!!  
in my new Vaultwarden installation with docker I’m trying to enable the admin page. I just followed what the wiki says about the admin token but when I try to go to my [domain.com/admin](http://domain.com/admin) it returns me the following error:

> The admin panel is disabled, please configure the ‘ADMIN\_TOKEN’ variable to enable it

I’ve tried to put some easy token like 123456, some really hard generated with the " openssl rand -base64 48", put some “quotations” before and after but the result is always the same.  
If I use the “Disable\_admin\_token” I can access without problem, so the nginx server is working ok.

What I am missing?

```auto
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: unless-stopped
    environment:
      - WEBSOCKET_ENABLED:true
      - ADMIN_TOKEN:randomPassword40characters
    volumes:
      - ./vaultwarden/vw-data:/data
    ports:
      - 80:80

  nginx:
    image: nginx:latest
    container_name: nginx
    volumes:
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./certs/xxxx.crt:/etc/nginx/xxxx.crt
      - ./certs/yyyy.key:/etc/nginx/yyyyy.key
    ports:
      - 1080:80
      - 1443:443
    restart: unless-stopped

```

Thank you so much.

Best regards

---

<div class="post-metadata">

**Author:** ![cksapp](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cksapp](https://vaultwarden.discourse.group/u/cksapp)\
**Post date:** [May 31, 2022, 4:49pm UTC](https://vaultwarden.discourse.group/t/enabling-admin-page/1661/2 "2022-05-31T16:49:47Z")

</div>

> [@FilFer](#):
>
> ```auto
> environment:
> - WEBSOCKET_ENABLED:true
> - ADMIN_TOKEN:randomPassword40characters
> 
> ```

Should be

```auto
environment:
      ADMIN_TOKEN=randomPassword40characters

```

---

<div class="post-metadata">

**Author:** ![FilFer](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/filfer/32/689_2.png) [@FilFer](https://vaultwarden.discourse.group/u/FilFer)\
**Post date:** [June 2, 2022, 5:52am UTC](https://vaultwarden.discourse.group/t/enabling-admin-page/1661/3 "2022-06-02T05:52:55Z")

</div>

It worked. After that change, I had to modify manually the config.json to update the disable\_token which it was still true.

Thank you so much.

---

<div class="post-metadata">

**Author:** ![Mr.Blonde](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mr.Blonde](https://vaultwarden.discourse.group/u/Mr.Blonde)\
**Post date:** [January 19, 2025, 9:37am UTC](https://vaultwarden.discourse.group/t/enabling-admin-page/1661/4 "2025-01-19T09:37:37Z")

</div>

Maybe a dumb question but were do you change this? I have vaultwarden running in a docker on a syno.
