2018-12-08 21:21:48 +00:00
|
|
|
---
|
2020-02-15 21:24:37 +00:00
|
|
|
gitea_version: 1.11.0
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_user: "gitea_adm"
|
|
|
|
gitea_user_home: "/home/{{ gitea_user }}"
|
|
|
|
gitea_group: "{{ gitea_user }}"
|
2018-12-09 17:06:10 +00:00
|
|
|
gitea_extra_groups: []
|
2018-12-08 21:21:48 +00:00
|
|
|
|
|
|
|
gitea_packages:
|
|
|
|
- git
|
|
|
|
|
|
|
|
gitea_base_dir: "/opt/gitea"
|
|
|
|
gitea_config_dir: "{{ gitea_base_dir }}/custom/conf"
|
|
|
|
gitea_data_dir: "{{ gitea_base_dir }}/data"
|
2020-02-16 15:21:37 +00:00
|
|
|
gitea_template_dir: "{{ gitea_base_dir }}/custom/templates"
|
2018-12-08 21:21:48 +00:00
|
|
|
|
2019-11-22 12:40:10 +00:00
|
|
|
gitea_selinux_fcontext:
|
2020-02-15 21:24:37 +00:00
|
|
|
- target: "{{ gitea_log_dir }}(/.*)?"
|
2019-11-22 12:40:10 +00:00
|
|
|
setype: var_log_t
|
|
|
|
gitea_selinux_restorecon:
|
2020-02-15 21:24:37 +00:00
|
|
|
- "-ir {{ gitea_log_dir }}"
|
2019-11-22 12:40:10 +00:00
|
|
|
|
2018-12-08 22:11:49 +00:00
|
|
|
gitea_bind_ip: 127.0.0.1
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_bind_port: 61000
|
2018-12-08 23:40:06 +00:00
|
|
|
gitea_listen_address: http://gitea.example.com
|
2018-12-08 21:21:48 +00:00
|
|
|
|
2020-02-15 21:24:37 +00:00
|
|
|
gitea_install_lock: True
|
2019-10-17 06:26:10 +00:00
|
|
|
# @var gitea_secret:description: Should be replaced by your own secret.
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_secret: "1234567ABCDEFG"
|
2019-10-17 06:26:10 +00:00
|
|
|
# @var gitea_token:description: Should be replaced by your own secret.
|
2018-12-08 22:53:58 +00:00
|
|
|
gitea_token: "akslkaldasasifiuvsiasfa7s7f8as7f8asd"
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_run_mode: prod
|
2020-02-15 21:24:37 +00:00
|
|
|
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
|
|
|
|
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_landing_page: explore
|
2020-02-15 21:24:37 +00:00
|
|
|
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
|
2018-12-08 21:21:48 +00:00
|
|
|
|
2020-10-04 11:24:36 +00:00
|
|
|
gitea_db_type: sqlite
|
|
|
|
# Configurations only applies to non-sqlite provider.
|
2019-10-27 15:23:27 +00:00
|
|
|
gitea_db_server: localhost
|
2019-10-27 15:17:08 +00:00
|
|
|
gitea_db_port: 5432
|
|
|
|
gitea_db_name: gitea
|
|
|
|
gitea_db_user: pggitea
|
2019-10-27 16:02:03 +00:00
|
|
|
gitea_db_password: secure
|
|
|
|
gitea_db_ssl_mode: disable
|
2018-12-08 21:21:48 +00:00
|
|
|
|
2020-02-15 21:24:37 +00:00
|
|
|
# @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"
|
2018-12-08 21:21:48 +00:00
|
|
|
|
2020-02-15 21:24:37 +00:00
|
|
|
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: []
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_repository_upload_max_filesize: 3
|
|
|
|
gitea_repository_upload_max_files: 5
|
2020-02-15 21:24:37 +00:00
|
|
|
# @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
|
|
|
|
|
2021-03-14 14:00:00 +00:00
|
|
|
# @var gitea_org_creation_enabled: description: Allow regular (non-admin) users to create organizations.
|
2020-02-15 21:24:37 +00:00
|
|
|
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
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_attachment_max_filesize: 3
|
|
|
|
gitea_attachment_max_files: 5
|
|
|
|
|
2020-02-15 21:24:37 +00:00
|
|
|
gitea_mirror_default_interval: 8h
|
|
|
|
gitea_mirror_min_interval: 10h
|
|
|
|
|
2018-12-08 21:21:48 +00:00
|
|
|
gitea_mail_service_enabled: False
|
2018-12-09 00:42:43 +00:00
|
|
|
gitea_mail_service_from: '"System" <systemmail@example.com>'
|
2020-02-15 21:40:59 +00:00
|
|
|
gitea_no_reply_address: "noreply@example.org"
|
2020-02-15 21:24:37 +00:00
|
|
|
# @var gitea_mail_subject_prefix:default: $ "_unset_"
|
|
|
|
# @var gitea_mail_subject_prefix:description: Prefix displayed before subject in mail.
|
|
|
|
|
2020-10-04 11:42:57 +00:00
|
|
|
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
|
|
|
|
|
2020-02-15 21:24:37 +00:00
|
|
|
gitea_api_swagger_enabled: True
|
|
|
|
gitea_api_default_paging_num: 30
|
|
|
|
gitea_api_default_git_trees_per_page: 1000
|
|
|
|
|
2020-02-16 14:49:33 +00:00
|
|
|
gitea_footer_show_branding: False
|
|
|
|
gitea_footer_show_version: False
|
|
|
|
gitea_footer_show_template_load_time: False
|
2021-03-14 14:00:00 +00:00
|
|
|
|
|
|
|
# @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:
|
2020-02-16 14:49:33 +00:00
|
|
|
# - name: Legal Notice
|
|
|
|
# href: https://example.com/legal_notice
|
|
|
|
# @end
|
2021-03-14 14:00:00 +00:00
|
|
|
gitea_extra_links_footer: []
|
|
|
|
gitea_extra_links: []
|
2019-07-19 07:55:47 +00:00
|
|
|
|
|
|
|
gitea_oauth_provider_enabled: False
|
|
|
|
gitea_access_token_expiration_time: 3600
|
|
|
|
gitea_refresh_token_expiration_time: 730
|
2020-02-15 21:24:37 +00:00
|
|
|
gitea_invalidate_refresh_tokens: False
|
2021-03-14 14:00:00 +00:00
|
|
|
|
2019-10-17 06:26:10 +00:00
|
|
|
# @bar gitea_jwt_secret:description: >
|
|
|
|
# OAuth2 authentication secret for access and refresh tokens.
|
|
|
|
# Should be replaced by your own secret.
|
|
|
|
# @end
|
2019-07-19 07:55:47 +00:00
|
|
|
gitea_jwt_secret: Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU
|
2018-12-08 21:21:48 +00:00
|
|
|
|
2020-02-15 21:24:37 +00:00
|
|
|
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_"
|
|
|
|
|
2018-12-08 21:21:48 +00:00
|
|
|
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
|