Skip to content

Environment Variable DISABLE_REGISTRATION=true Not Working in v1.25 Docker Installation #35828

@Fugitive844

Description

@Fugitive844

Description

After upgrading from version 1.22.5 to 1.25, the environment variable DISABLE_REGISTRATION=true does not take effect when running the Docker container. Despite setting this variable, the registration page remains accessible. This issue occurs specifically in the Docker-based installation of version 1.25.

Image

Gitea Version

1.25

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker run -d \ --name gitea \ -e USER_UID=1000 \ -e USER_GID=1000 \ -e GITEA__database__DB_TYPE=mysql \ -e GITEA__database__HOST=192.168.1.87:3306 \ -e GITEA__database__NAME=gitea \ -e GITEA__database__USER=root \ -e GITEA__database__PASSWD=1234567 \ -e DISABLE_REGISTRATION=true \ -e REGISTER_EMAIL_CONFIRM=true \ -e REGISTER_MANUAL_CONFIRM=true \ -e SHOW_REGISTRATION_BUTTON=fasle \ --restart always \ -v /data/gitea:/data \ -e TZ=Asia/Shanghai \ -p 36927:3000 \ -p 222:22 \ gitea/gitea:1.25

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions