mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Merge pull request #119 from solick/main
Added parameters and fixed ini layout
This commit is contained in:
commit
5b11e8b2d5
2 changed files with 198 additions and 175 deletions
|
@ -162,8 +162,19 @@ 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_auto_watch_new_repos: false
|
||||||
|
gitea_autowatch_on_change: true
|
||||||
|
# make sure, that register_email_confirm is false when register_manual_confirm is set to true
|
||||||
|
gitea_register_manual_confirm: true
|
||||||
|
gitea_default_allow_create_organization: false
|
||||||
|
gitea_default_user_is_restricted: true
|
||||||
|
gitea_email_domain_allowlist: ""
|
||||||
|
gitea_default_user_visibility: limited
|
||||||
|
gitea_default_org_visibility: limited
|
||||||
|
gitea_allow_only_internal_registration: true
|
||||||
|
gitea_show_mailstones_dashboard: true
|
||||||
|
# gitea_email_domain_allowlist: ""
|
||||||
|
|
||||||
# Mailer [mailer]
|
# Mailer [mailer]
|
||||||
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer
|
||||||
|
|
|
@ -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
|
||||||
|
@ -174,6 +175,17 @@ DEFAULT_KEEP_EMAIL_PRIVATE = {{ gitea_default_keep_mail_private | ternary
|
||||||
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') }}
|
||||||
|
AUTO_WATCH_ON_CHANGES = {{ gitea_autowatch_on_change }}
|
||||||
|
SHOW_MILESTONES_DASHBOARD_PAGE = {{ gitea_show_mailstones_dashboard }}
|
||||||
|
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 %}
|
||||||
|
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 }}
|
{{ gitea_service_extra_config }}
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
@ -191,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 }}
|
||||||
|
|
Loading…
Reference in a new issue