Skip to content

401 for all requests post authentication with password #4

Description

@ajcaredose

Hi, I recently hosted librechat using docker compose . While looking for admin dashboard I came across your project.
I added it to my docker compose , it runs and am able to authenticate using password that I set via env file but post authentication I get this error on the screen. If I put in wrong pass word the authentication fails but when the password is correct this error occurs -
Image
Then when I check the console all the requests fail with 401 error.
Image
I am sharing my configuration , let me know if I am missing something -

docker-compose.yml -

  dashboard:
    image: ghcr.io/innfactory/librechat-admin-dashboard:1.1.1
    container_name: librechat-dashboard
    environment:
      - PORT=3000
      - NODE_ENV=production
    ports:
      - "3000:3000"
    env_file:
      - .env.production
    depends_on:
      - api
    restart: always
    deploy:
      resources:
        limits:
          memory: 256M

.env -

MONGODB_URI="mongodb://mongodb:27017"
MONGODB_DB_NAME="LibreChat"
DASHBOARD_PASSWORD="<password-here>"

My nginx config -

** I have set it up on a new domain now **

location / {
         proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_cookie_path / /;
    }

Additional info -

I am running my docker compose on a lightsail instance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions