forgejo: disable registrations, enable auto-registration for SSO

This commit is contained in:
emily 2024-07-16 17:14:23 +02:00
parent ab9caaf520
commit 8b9d33d70c
Signed by: emilylange
GPG key ID: 0AD773CE46FD0F87

View file

@ -49,7 +49,16 @@ in
COOKIE_NAME = "session";
};
# TODO: SSO, disable registrations
service = {
DISABLE_REGISTRATION = true;
DEFAULT_KEEP_EMAIL_PRIVATE = true;
};
oauth2_client = {
REGISTER_EMAIL_CONFIRM = false;
ENABLE_AUTO_REGISTRATION = true;
};
# TODO: transactional mails
# TODO: redis cache instead of default in-memory