1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

removed double parameter entries; added missing variable gitea_show_milestones_dashboard; fixed ini layout to only show valid changed when using -D

This commit is contained in:
Lyn Matten 2023-08-29 09:35:35 +02:00
parent d08647ef84
commit 2912ec874f
2 changed files with 64 additions and 69 deletions

View file

@ -162,20 +162,18 @@ gitea_enable_captcha: true
gitea_show_registration_button: true gitea_show_registration_button: true
gitea_only_allow_external_registration: false gitea_only_allow_external_registration: false
gitea_enable_notify_mail: false gitea_enable_notify_mail: false
gitea_auto_watch_new_repos: true
gitea_service_extra_config: '' gitea_service_extra_config: ''
gitea_autowatch_new_repo: false gitea_auto_watch_new_repos: false
gitea_autowatch_on_change: true gitea_autowatch_on_change: true
# make sure, that register_email_confirm is false when register_manual_confirm is set to 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_register_manual_confirm: true
gitea_default_allow_create_organization: false gitea_default_allow_create_organization: false
gitea_default_user_is_restricted: true gitea_default_user_is_restricted: true
gitea_email_domain_allowlist: "" gitea_email_domain_allowlist: ""
gitea_auto_watch_new_repos: false
gitea_default_user_visibility: limited gitea_default_user_visibility: limited
gitea_default_org_visibility: limited gitea_default_org_visibility: limited
gitea_allow_only_internal_registration: true gitea_allow_only_internal_registration: true
gitea_show_mailstones_dashboard: true
# gitea_email_domain_allowlist: "" # gitea_email_domain_allowlist: ""
# Mailer [mailer] # Mailer [mailer]

View file

@ -9,6 +9,7 @@
APP_NAME = {{ gitea_app_name }} APP_NAME = {{ gitea_app_name }}
RUN_USER = {{ gitea_user }} RUN_USER = {{ gitea_user }}
RUN_MODE = {{ gitea_run_mode }} RUN_MODE = {{ gitea_run_mode }}
WORK_PATH = {{ gitea_home }}
; ;
; ;
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
@ -71,7 +72,7 @@ X_FRAME_OPTIONS = {{ gitea_cors_x_frame_options }}
[ui] [ui]
THEMES = {{ gitea_themes }} THEMES = {{ gitea_themes }}
DEFAULT_THEME = {{ gitea_theme_default }} DEFAULT_THEME = {{ gitea_theme_default }}
SHOW_USER_EMAIL= {{ gitea_show_user_email | ternary('true', 'false') }} SHOW_USER_EMAIL = {{ gitea_show_user_email | ternary('true', 'false') }}
{{ gitea_ui_extra_config }} {{ gitea_ui_extra_config }}
; ;
; ;
@ -174,18 +175,14 @@ DEFAULT_KEEP_EMAIL_PRIVATE = {{ gitea_default_keep_mail_private | ternary('true'
SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }} SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }}
AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos | 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') }} 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 }} AUTO_WATCH_ON_CHANGES = {{ gitea_autowatch_on_change }}
SHOW_MILESTONES_DASHBOARD_PAGE = {{ gitea_show_mailstones_dashboard }} SHOW_MILESTONES_DASHBOARD_PAGE = {{ gitea_show_mailstones_dashboard }}
REGISTER_EMAIL_CONFIRM = {{ gitea_register_email_confirm }}
REGISTER_MANUAL_CONFIRM = {{ gitea_register_manual_confirm }} REGISTER_MANUAL_CONFIRM = {{ gitea_register_manual_confirm }}
DEFAULT_ALLOW_CREATE_ORGANIZATION = {{ gitea_default_allow_create_organization }} DEFAULT_ALLOW_CREATE_ORGANIZATION = {{ gitea_default_allow_create_organization }}
DEFAULT_USER_IS_RESTRICTED = {{ gitea_default_user_is_restricted }} DEFAULT_USER_IS_RESTRICTED = {{ gitea_default_user_is_restricted }}
{% if gitea_email_domain_allowlist is defined and gitea_email_domain_allowlist|length %} {% if gitea_email_domain_allowlist is defined and gitea_email_domain_allowlist|length %}
EMAIL_DOMAIN_ALLOWLIST = {{ gitea_email_domain_allowlist }} EMAIL_DOMAIN_ALLOWLIST = {{ gitea_email_domain_allowlist }}
{% endif %} {% endif %}
AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos }}
DEFAULT_USER_VISIBILITY = {{ gitea_default_user_visibility }} DEFAULT_USER_VISIBILITY = {{ gitea_default_user_visibility }}
DEFAULT_ORG_VISIBILITY = {{ gitea_default_org_visibility }} DEFAULT_ORG_VISIBILITY = {{ gitea_default_org_visibility }}
ALLOW_ONLY_INTERNAL_REGISTRATION = {{ gitea_allow_only_internal_registration }} ALLOW_ONLY_INTERNAL_REGISTRATION = {{ gitea_allow_only_internal_registration }}
@ -206,7 +203,7 @@ CLIENT_KEY_FILE = {{ gitea_mailer_client_key_file }}
{% endif %} {% endif %}
FORCE_TRUST_SERVER_CERT = {{ gitea_mailer_force_trust_server_cert | ternary('true', 'false') }} FORCE_TRUST_SERVER_CERT = {{ gitea_mailer_force_trust_server_cert | ternary('true', 'false') }}
USER = {{ gitea_mailer_user }} USER = {{ gitea_mailer_user }}
PASSWD = `{{ gitea_mailer_password }}` PASSWD = {{ gitea_mailer_password }}
ENABLE_HELO = {{ gitea_mailer_enable_helo | ternary('true', 'false') }} ENABLE_HELO = {{ gitea_mailer_enable_helo | ternary('true', 'false') }}
FROM = {{ gitea_mailer_from }} FROM = {{ gitea_mailer_from }}
SUBJECT_PREFIX = {{ gitea_subject_prefix }} SUBJECT_PREFIX = {{ gitea_subject_prefix }}