From e118d2f7cb45df2fdd108887566b8f9a9839af98 Mon Sep 17 00:00:00 2001 From: Lyn Matten Date: Tue, 29 Aug 2023 08:52:06 +0200 Subject: [PATCH] added several config options for service section --- defaults/main.yml | 13 +++++++++++++ templates/gitea.ini.j2 | 15 +++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index bb04b91..ef25d10 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -164,6 +164,19 @@ gitea_only_allow_external_registration: false gitea_enable_notify_mail: false gitea_auto_watch_new_repos: true gitea_service_extra_config: '' +gitea_autowatch_new_repo: false +gitea_autowatch_on_change: true +# make sure, that register_email_confirm is false when register_manual_confirm is set to true +gitea_register_email_confirm: false +gitea_register_manual_confirm: true +gitea_default_allow_create_organization: false +gitea_default_user_is_restricted: true +gitea_email_domain_allowlist: "" +gitea_auto_watch_new_repos: false +gitea_default_user_visibility: limited +gitea_default_org_visibility: limited +gitea_allow_only_internal_registration: true +# gitea_email_domain_allowlist: "" # Mailer [mailer] # -> https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index cbe7cb2..c25365d 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -174,6 +174,21 @@ DEFAULT_KEEP_EMAIL_PRIVATE = {{ gitea_default_keep_mail_private | ternary SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }} AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos | ternary('true', 'false') }} ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration | ternary('true', 'false') }} +; new +AUTO_WATCH_NEW_REPOS = {{ gitea_autowatch_new_repo }} +AUTO_WATCH_ON_CHANGES = {{ gitea_autowatch_on_change }} +SHOW_MILESTONES_DASHBOARD_PAGE = {{ gitea_show_mailstones_dashboard }} +REGISTER_EMAIL_CONFIRM = {{ gitea_register_email_confirm }} +REGISTER_MANUAL_CONFIRM = {{ gitea_register_manual_confirm }} +DEFAULT_ALLOW_CREATE_ORGANIZATION = {{ gitea_default_allow_create_organization }} +DEFAULT_USER_IS_RESTRICTED = {{ gitea_default_user_is_restricted }} +{% if gitea_email_domain_allowlist is defined and gitea_email_domain_allowlist|length %} +EMAIL_DOMAIN_ALLOWLIST = {{ gitea_email_domain_allowlist }} +{% endif %} +AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos }} +DEFAULT_USER_VISIBILITY = {{ gitea_default_user_visibility }} +DEFAULT_ORG_VISIBILITY = {{ gitea_default_org_visibility }} +ALLOW_ONLY_INTERNAL_REGISTRATION = {{ gitea_allow_only_internal_registration }} {{ gitea_service_extra_config }} ; ;