-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
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.
Gitea Version
1.25
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
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