1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

fix: disable forgejo auto registration to allow reviewing username and mail

This commit is contained in:
oddlama 2024-03-12 17:17:57 +01:00
parent fba87840c2
commit f4b397ece8
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -93,12 +93,12 @@ in {
services.forgejo = { services.forgejo = {
enable = true; enable = true;
appName = "Redlew Git"; # tungsten inert gas?
# TODO db backups # TODO db backups
# dump.enable = true; # dump.enable = true;
lfs.enable = true; lfs.enable = true;
mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path; mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path;
settings = { settings = {
DEFAULT.APP_NAME = "Redlew Git"; # tungsten inert gas?
actions = { actions = {
ENABLED = true; ENABLED = true;
DEFAULT_ACTIONS_URL = "github"; DEFAULT_ACTIONS_URL = "github";
@ -129,7 +129,10 @@ in {
# with the existing account to link. # with the existing account to link.
ACCOUNT_LINKING = "login"; ACCOUNT_LINKING = "login";
USERNAME = "nickname"; USERNAME = "nickname";
ENABLE_AUTO_REGISTRATION = true; # This does not mean that you cannot register via oauth, but just that there should
# be a confirmation dialog shown to the user before the account is actually created.
# This dialog allows changing user name and email address before creating the account.
ENABLE_AUTO_REGISTRATION = false;
REGISTER_EMAIL_CONFIRM = false; REGISTER_EMAIL_CONFIRM = false;
UPDATE_AVATAR = true; UPDATE_AVATAR = true;
}; };