xoxys.gitea/defaults/main.yml

274 lines
8.0 KiB
YAML

---
gitea_version: 1.16.1
gitea_user: "gitea_adm"
gitea_user_home: "/home/{{ gitea_user }}"
gitea_group: "{{ gitea_user }}"
gitea_extra_groups: []
gitea_packages:
- git
gitea_base_dir: "/opt/gitea"
gitea_config_dir: "{{ gitea_base_dir }}/custom/conf"
gitea_data_dir: "{{ gitea_base_dir }}/data"
gitea_template_dir: "{{ gitea_base_dir }}/custom/templates"
gitea_selinux_fcontext:
- target: "{{ gitea_log_dir }}(/.*)?"
setype: var_log_t
gitea_selinux_restorecon:
- "-ir {{ gitea_log_dir }}"
gitea_bind_ip: 127.0.0.1
gitea_bind_port: 61000
gitea_listen_address: http://gitea.example.com
gitea_install_lock: True
# @var gitea_secret:description: Should be replaced by your own secret.
gitea_secret: "1234567ABCDEFG"
# @var gitea_token:description: Should be replaced by your own secret.
gitea_token: "akslkaldasasifiuvsiasfa7s7f8as7f8asd"
gitea_run_mode: prod
gitea_login_remember_days: 7
gitea_password_min_lenght: 8
# @var gitea_password_complexity:description: >
# If left empty or no valid values are specified, the default values
# `lower,upper,digit,spec` will be used. Use `off` to disable checking.
# @end
gitea_password_complexity:
- lower
- upper
- digit
- spec
gitea_git_hooks_enabled: True
gitea_landing_page: explore
gitea_ssh_enabled: True
# @var gitea_minimum_keysize_check:description: >
# Indicate whether to check minimum key size with corresponding type.
# @end
gitea_minimum_keysize_check: False
# @var gitea_minimum_keysize:description: >
# Define allowed algorithms and their minimum key length (use -1 to disable a type).
# @end
gitea_minimum_keysize:
- name: ED25519
size: 256
- name: ECDSA
size: 256
- name: RSA
size: 2048
- name: DSA
size: -1
gitea_offline_mode: False
gitea_registration_enabled: False
gitea_registration_email_confirm: False
gitea_registration_email_domain_whitelist: []
gitea_registration_allow_external_only: False
gitea_registration_button_enabled: True
gitea_db_type: sqlite
# Configurations only applies to non-sqlite provider.
gitea_db_server: localhost
gitea_db_port: 5432
gitea_db_name: gitea
gitea_db_user: pggitea
gitea_db_password: secure
gitea_db_ssl_mode: disable
# @var gitea_default_email_notification:description: >
# Default configuration for email notifications for users (user configurable).
# Options: `enabled`, `onmention`, `disabled`.
# @end
gitea_default_email_notification: enabled
gitea_default_keep_email_private: True
gitea_default_org_allow_creation: True
gitea_default_org_visible: public
gitea_default_org_member_visible: False
gitea_default_dependencies_enabled: True
gitea_default_timetracking_enabled: True
gitea_log_level: Info
gitea_log_dir: "{{ gitea_base_dir }}/log"
gitea_repository_default_private: last
gitea_repository_force_private: False
gitea_repository_default_license:
- Apache License 2.0
- MIT Licensei
gitea_repository_creation_limit: -1
gitea_repository_http_enabled: True
# @var gitea_repository_access_control_allow_origin:default: $ "_unset_"
# @var gitea_repository_access_control_allow_origin:description: >
# Value for Access-Control-Allow-Origin header, default unset.
# WARNING: This maybe harmful to you website if you do not give it a right value!
# @end
# @var gitea_repository_use_compat_ssh_uri:description: >
# Force ssh:// clone url instead of scp-style uri when default SSH port is used
# @end
gitea_repository_use_compat_ssh_uri: False
gitea_repository_push_create_user_enabled: False
gitea_repository_push_create_org_enabled: False
gitea_repository_auto_watch_on_creation: False
gitea_repository_auto_watch_on_change: False
# @var gitea_repository_editor_line_wrap_ext:description: >
# Comma-separated list of file extensions for which lines should be wrapped in the CodeMirror editor.
# To line wrap files without an extension, just put a comma.
# @end
gitea_repository_editor_line_wrap_ext:
- .txt
- .md
- .markdown
- .mdown
- .mkd
gitea_repository_upload_enabled: True
# @var gitea_repository_upload_allowed_types:description: >
# One or more allowed types, e.g. image/jpeg|image/png. Default allows any file type.
# @end
gitea_repository_upload_allowed_types: []
gitea_repository_upload_max_filesize: 3
gitea_repository_upload_max_files: 5
# @var gitea_repository_pr_wip_prefix:description: >
# List of prefixes used in Pull Request title to mark them as Work In Progress.
# @end
gitea_repository_pr_wip_prefix:
- "WIP:"
- "[WIP]"
gitea_repository_pr_close_keyword:
- close
- closes
- closed
- fix
- fixes
- fixed
- resolve
- resolves
- resolved
gitea_repository_pr_reopen_keyword:
- reopen
- reopens
- reopened
# @var gitea_repository_issue_lock_reason:description: >
# List of reasons why a Pull Request or Issue can be locked.
# @end
gitea_repository_issue_lock_reason:
- Too heated
- Off-topic
- Resolved
- Spam
gitea_ui_explore_paging_num: 20
gitea_ui_issue_paging_num: 10
gitea_ui_feed_commit_num: 5
gitea_ui_graph_commit_num: 100
gitea_ui_code_comment_lines: 4
gitea_ui_show_user_email: True
# @var gitea_ui_reaction:description: >
# All available reactions. Allow users react with different emojis.
# See https://gitea.com/gitea/gitea.com/issues/8.
# @end
gitea_ui_reaction:
- +1
- -1
- laugh
- hooray
- confused
- heart
- rocket
- eyes
gitea_ui_show_full_name: False
gitea_ui_search_repo_description: True
gitea_ui_admin_user_paging_num: 50
gitea_ui_admin_repo_paging_num: 50
gitea_ui_admin_notice_paging_num: 25
gitea_ui_admin_org_paging_num: 50
gitea_ui_user_repo_paging_num: 15
gitea_markdown_hard_linebreak_enabled: False
gitea_markdown_custom_url_scheme: []
gitea_markdown_file_ext:
- .md
- .markdown
- .mdown
- .mkd
gitea_lfs_enabled: False
gitea_lfs_jwt_secret: gitea_lfs_jwt_secret
# @var gitea_org_creation_enabled: description: Allow regular (non-admin) users to create organizations.
gitea_org_creation_enabled: True
gitea_gravatar_enabled: False
gitea_gravatar_source: gravatar
gitea_avatar_federation_enabled: False
gitea_attachment_enabled: True
gitea_attachment_allowed_types:
- image/jpeg
- image/png
- application/zip
- application/gzip
gitea_attachment_max_filesize: 3
gitea_attachment_max_files: 5
gitea_mirror_default_interval: 8h
gitea_mirror_min_interval: 10h
gitea_mail_service_enabled: False
gitea_mail_service_from: '"System" <systemmail@example.com>'
gitea_no_reply_address: "noreply@example.org"
# @var gitea_mail_subject_prefix:default: $ "_unset_"
# @var gitea_mail_subject_prefix:description: Prefix displayed before subject in mail.
gitea_session_provider: memory
gitea_session_provider_config: data/sessions
gitea_session_cookie_name: i_like_gitea
gitea_session_cookie_secure: False
gitea_session_enable_set_cookie: True
gitea_session_session_life_time: 86400
gitea_api_swagger_enabled: True
gitea_api_default_paging_num: 30
gitea_api_default_git_trees_per_page: 1000
gitea_footer_show_branding: False
gitea_footer_show_version: False
gitea_footer_show_template_load_time: False
# @var gitea_extra_links_footer:description: Add custom links e.g. legal notice to gitea footer.
# @var gitea_extra_links_footer:example: >
# gitea_extra_links_footer:
# - name: Legal Notice
# href: https://example.com/legal_notice
# @end
gitea_extra_links_footer: []
gitea_extra_links: []
gitea_webhook_allowed_host_list:
- external
gitea_oauth_provider_enabled: False
gitea_access_token_expiration_time: 3600
gitea_refresh_token_expiration_time: 730
gitea_invalidate_refresh_tokens: False
gitea_jwt_signing_algorithm: RS256
# @var gitea_jwt_secret:description: >
# OAuth2 authentication secret for access and refresh tokens. Should be replaced by your own secret.
# Only works if `gitea_jwt_signing_algorithm` is set to HS256, HS384 or HS512.
# @end
# @var gitea_jwt_secret:example: $ "Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU"
gitea_metrics_enabled: False
# @var gitea_metrics_token:description: If you want to add authorization, specify a token here.
# @var gitea_metrics_token:default: $ "_unset_"
gitea_tls_enabled: False
gitea_tls_cert_path: "{{ gitea_base_dir }}/tls/certs/mycert.pem"
gitea_tls_key_path: "{{ gitea_base_dir }}/tls/private/mykey.pem"
gitea_tls_cert_source: mycert.pem
gitea_tls_key_source: mykey.pem