[GH-ISSUE #52] DISABLE_SIGNUPS not working #48

Closed
opened 2026-03-02 11:46:03 +03:00 by kerem · 7 comments
Owner

Originally created by @chanunnaki on GitHub (Mar 30, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/52

I set the .env variable to DISABLE_SIGNUPS=true but it didn't disable the option.

I ran docker compose up -s again after saving the .env already.

Originally created by @chanunnaki on GitHub (Mar 30, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/52 I set the .env variable to `DISABLE_SIGNUPS=true` but it didn't disable the option. I ran `docker compose up -s` again after saving the .env already.
kerem 2026-03-02 11:46:03 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@MohamedBassem commented on GitHub (Mar 30, 2024):

Can you share your docker compose file?

Can you also maybe share the output of: docker inspect hoarder-pub-web-1 | grep DISABLE_SIGNUPS to ensure that the web container actually saw the env variable?

<!-- gh-comment-id:2028443049 --> @MohamedBassem commented on GitHub (Mar 30, 2024): Can you share your docker compose file? Can you also maybe share the output of: `docker inspect hoarder-pub-web-1 | grep DISABLE_SIGNUPS` to ensure that the web container actually saw the env variable?
Author
Owner

@chanunnaki commented on GitHub (Mar 30, 2024):

Sure!

I didn’t change anything in the compose file other than the port, but I just attached for compliance.

I’m running through unRAID and for some reason that is beyond my understanding the container is called docker-pub-1, so I ran docker inspect docker-pub-1 | grep DISABLE_SIGNUPS and this is the output:

            "DISABLE_SIGNUPS=true”,

So it looks like the container can indeed see the variable which makes sense, because it was in the same .env file that I put in my OpenAI key.

And the compose file:
version: "3.8"
services:
web:
image: ghcr.io/mohamedbassem/hoarder-web:${HOARDER_VERSION:-release}
restart: unless-stopped
volumes:
- data:/data
ports:
- 3333:3000
env_file:
- .env
environment:
REDIS_HOST: redis
MEILI_ADDR: http://meilisearch:7700
DATA_DIR: /data
redis:
image: redis:7.2-alpine
restart: unless-stopped
volumes:
- redis:/data
chrome:
image: gcr.io/zenika-hub/alpine-chrome:100
restart: unless-stopped
command:
- --no-sandbox
- --disable-gpu
- --remote-debugging-address=0.0.0.0
- --remote-debugging-port=9222
meilisearch:
image: getmeili/meilisearch:v1.6
restart: unless-stopped
env_file:
- .env
volumes:
- meilisearch:/meili_data
workers:
image: ghcr.io/mohamedbassem/hoarder-workers:${HOARDER_VERSION:-release}
restart: unless-stopped
volumes:
- data:/data
env_file:
- .env
environment:
REDIS_HOST: redis
MEILI_ADDR: http://meilisearch:7700
BROWSER_WEB_URL: http://chrome:9222
DATA_DIR: /data
# OPENAI_API_KEY: ...
depends_on:
web:
condition: service_started

volumes:
redis:
meilisearch:
data:

<!-- gh-comment-id:2028444962 --> @chanunnaki commented on GitHub (Mar 30, 2024): Sure! I didn’t change anything in the compose file other than the port, but I just attached for compliance. I’m running through unRAID and for some reason that is beyond my understanding the container is called docker-pub-1, so I ran `docker inspect docker-pub-1 | grep DISABLE_SIGNUPS` and this is the output: "DISABLE_SIGNUPS=true”, So it looks like the container can indeed see the variable which makes sense, because it was in the same .env file that I put in my OpenAI key. And the compose file: version: "3.8" services: web: image: ghcr.io/mohamedbassem/hoarder-web:${HOARDER_VERSION:-release} restart: unless-stopped volumes: - data:/data ports: - 3333:3000 env_file: - .env environment: REDIS_HOST: redis MEILI_ADDR: http://meilisearch:7700 DATA_DIR: /data redis: image: redis:7.2-alpine restart: unless-stopped volumes: - redis:/data chrome: image: gcr.io/zenika-hub/alpine-chrome:100 restart: unless-stopped command: - --no-sandbox - --disable-gpu - --remote-debugging-address=0.0.0.0 - --remote-debugging-port=9222 meilisearch: image: getmeili/meilisearch:v1.6 restart: unless-stopped env_file: - .env volumes: - meilisearch:/meili_data workers: image: ghcr.io/mohamedbassem/hoarder-workers:${HOARDER_VERSION:-release} restart: unless-stopped volumes: - data:/data env_file: - .env environment: REDIS_HOST: redis MEILI_ADDR: http://meilisearch:7700 BROWSER_WEB_URL: http://chrome:9222 DATA_DIR: /data # OPENAI_API_KEY: ... depends_on: web: condition: service_started volumes: redis: meilisearch: data:
Author
Owner

@MohamedBassem commented on GitHub (Mar 30, 2024):

hmmm, interesting. It looks right indeed. So, when you say DISABLE_SIGNUPS is not working, does that mean you can create an account normally?

Typically, what you'd see is that the Signup button is disabled similar to this screenshot:

Screenshot 2024-03-30 at 7 11 42 PM
<!-- gh-comment-id:2028446099 --> @MohamedBassem commented on GitHub (Mar 30, 2024): hmmm, interesting. It looks right indeed. So, when you say `DISABLE_SIGNUPS` is not working, does that mean you can create an account normally? Typically, what you'd see is that the `Signup` button is disabled similar to this screenshot: <img width="463" alt="Screenshot 2024-03-30 at 7 11 42 PM" src="https://github.com/MohamedBassem/hoarder-app/assets/2418637/a9e82017-7acd-4307-892f-0bac03ac9f32">
Author
Owner

@chanunnaki commented on GitHub (Mar 30, 2024):

yeah, it's exactly the same:

image

This screenshot was taken in another browser that I don't normally use to rule out the possibilty of the site being cached somehow.

<!-- gh-comment-id:2028447121 --> @chanunnaki commented on GitHub (Mar 30, 2024): yeah, it's exactly the same: ![image](https://github.com/MohamedBassem/hoarder-app/assets/49243628/02789b16-d51f-4e57-8351-5d43ecab676a) This screenshot was taken in another browser that I don't normally use to rule out the possibilty of the site being cached somehow.
Author
Owner

@MohamedBassem commented on GitHub (Mar 30, 2024):

Hmm, that screenshot that you shared shows the button as disabled. Which means that you can't really sign up.

This is what it looks like when signups is enabled:

Screenshot 2024-03-30 at 7 45 55 PM

And this is what it looks like when it's disabled:

Screenshot 2024-03-30 at 7 47 27 PM
<!-- gh-comment-id:2028453985 --> @MohamedBassem commented on GitHub (Mar 30, 2024): Hmm, that screenshot that you shared shows the button as `disabled`. Which means that you can't really sign up. This is what it looks like when signups is enabled: <img width="453" alt="Screenshot 2024-03-30 at 7 45 55 PM" src="https://github.com/MohamedBassem/hoarder-app/assets/2418637/bbea838c-fd8b-4d73-985f-c6c36296d01a"> And this is what it looks like when it's disabled: <img width="392" alt="Screenshot 2024-03-30 at 7 47 27 PM" src="https://github.com/MohamedBassem/hoarder-app/assets/2418637/4a02fdb6-fe8d-41a5-96c0-632a7b594a4a">
Author
Owner

@chanunnaki commented on GitHub (Mar 30, 2024):

Ah, I thought the signup tab is supposed to disappear completely.

My apologies, and thank you for the help.

<!-- gh-comment-id:2028454509 --> @chanunnaki commented on GitHub (Mar 30, 2024): Ah, I thought the signup tab is supposed to disappear completely. My apologies, and thank you for the help.
Author
Owner

@MohamedBassem commented on GitHub (Mar 30, 2024):

hmmm, I might actually consider changing it so that it fully disappears. Makes sense.

<!-- gh-comment-id:2028455421 --> @MohamedBassem commented on GitHub (Mar 30, 2024): hmmm, I might actually consider changing it so that it fully disappears. Makes sense.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#48
No description provided.