-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker DISABLE_SSH and DISABLE_REGISTRATION environment variables not working #16018
Comments
What does the generated app.ini look like? |
Both parameters are set to false in the app.ini, I changed them to true manually and that works, but I would like to keep the configuration in the docker-compose.yml. [repository]
ROOT = /data/git/repositories
DEFAULT_PRIVATE = private <----- This was auto configured properly
[server]
APP_DATA_PATH = /data/gitea
DOMAIN = ***********************
SSH_DOMAIN = *************
HTTP_PORT = 3000
ROOT_URL = ***************
DISABLE_SSH = false <-- manually changed to true
SSH_PORT = 22
SSH_LISTEN_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs
PROTOCOL = http
LFS_JWT_SECRET = *************************
OFFLINE_MODE = false
[service]
DISABLE_REGISTRATION = false <-- Manually changed to true
REQUIRE_SIGNIN_VIEW = false
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING = false
NO_REPLY_ADDRESS =
|
Did you have to run through the install page? That's the way that these settings would be overridden and I think I've recently fixed this with another pr. |
I have adjusted the parameters by hand, and have all systems up and running. I have the environment variable set just in case the problem is fixed and I have to re-deploy for some reason. However atm things are running smoothly so I'm not planning to touch my setup for testing. |
FWIW I just tried a new install on 1.15.0-rc3 and can confirm that this is working again. I believe #15943 is the PR with the fix. |
Using the latest docker version of gitea docker with docker compose:
The settings
GITEA__server__DISABLE_SSH=true
andGITEA__service__DISABLE_REGISTRATION=true
are not working whileGITEA__repository__DEFAULT_PRIVATE=private
does work.Looks like boolean values are not mapped properly?
The text was updated successfully, but these errors were encountered: