2019-03-16 12:51:32 +01:00
|
|
|
---
|
2023-01-26 22:35:10 +01:00
|
|
|
# Choose between https://forgejo.org/ and https://gitea.io/
|
|
|
|
gitea_fork: 'gitea' # 'gitea' and 'forgejo' are valid options
|
|
|
|
|
2021-03-21 02:02:15 +01:00
|
|
|
# gitea version
|
2021-07-16 02:43:58 +02:00
|
|
|
# Use 'latest' to auto-update; upgrading past role version may lead to errors.
|
2022-03-27 04:08:55 +02:00
|
|
|
gitea_version: 'latest'
|
2019-04-30 02:57:14 +02:00
|
|
|
gitea_version_check: true
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_gpg_key: '7C9E68152594688862D62AF62D9AE806EC1592E2'
|
2023-01-26 22:35:10 +01:00
|
|
|
gitea_forgejo_gpg_key: 'EB114F5E6C0DC2BCDD183550A4B61A2DC5923710'
|
2021-04-07 18:44:22 +02:00
|
|
|
gitea_gpg_server: 'hkps://keys.openpgp.org'
|
2021-03-22 00:35:16 +01:00
|
|
|
gitea_backup_on_upgrade: false
|
|
|
|
gitea_backup_location: "{{ gitea_home }}/backups/"
|
2021-03-22 02:22:22 +01:00
|
|
|
submodules_versioncheck: false
|
2019-01-07 14:56:08 +01:00
|
|
|
|
2021-03-21 02:02:15 +01:00
|
|
|
# gitea in the linux world
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_group: 'gitea'
|
2022-06-05 10:12:17 +02:00
|
|
|
# gitea_groups: [] # Optional a list of groups user gitea will be added to
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_home: '/var/lib/gitea'
|
2022-08-22 13:53:13 +02:00
|
|
|
gitea_user_home: '{{ gitea_home }}'
|
2022-08-22 13:33:20 +02:00
|
|
|
gitea_executable_path: '/usr/local/bin/gitea'
|
2023-01-27 01:35:16 +01:00
|
|
|
gitea_forgejo_executable_path: '/usr/local/bin/forgejo'
|
2022-08-22 13:33:20 +02:00
|
|
|
gitea_configuraion_path: '/etc/gitea'
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_shell: '/bin/false'
|
2021-03-22 00:35:16 +01:00
|
|
|
gitea_systemd_cap_net_bind_service: false
|
2021-03-21 17:08:17 +01:00
|
|
|
|
|
|
|
# Overall (DEFAULT)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#overall-default
|
|
|
|
gitea_app_name: 'Gitea'
|
|
|
|
gitea_user: 'gitea'
|
|
|
|
gitea_run_mode: 'prod'
|
2021-06-03 21:14:42 +02:00
|
|
|
gitea_fqdn: 'localhost'
|
2021-03-21 17:08:17 +01:00
|
|
|
|
|
|
|
# Repository (repository)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
|
|
|
|
gitea_default_branch: 'main'
|
2021-07-25 01:18:59 +02:00
|
|
|
gitea_default_private: 'last'
|
2023-01-24 21:22:55 +01:00
|
|
|
gitea_default_repo_units: 'repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects'
|
|
|
|
gitea_disabled_repo_units: ''
|
|
|
|
gitea_disable_http_git: false
|
|
|
|
gitea_disable_stars: false
|
|
|
|
gitea_enable_push_create_org: false
|
|
|
|
gitea_enable_push_create_user: false
|
|
|
|
gitea_force_private: false
|
|
|
|
gitea_user_repo_limit: '-1'
|
|
|
|
gitea_repository_root: "{{ gitea_home }}/repos"
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_repository_extra_config: ''
|
2023-05-12 20:19:43 +02:00
|
|
|
|
2023-05-12 20:32:28 +02:00
|
|
|
# Repository - Upload (repository.upload)
|
2023-05-12 20:19:43 +02:00
|
|
|
# -> https://docs.gitea.io/en-us/administration/config-cheat-sheet/#repository---upload-repositoryupload
|
|
|
|
gitea_repository_upload_enabled: true
|
|
|
|
gitea_repository_upload_max_size: 4
|
2021-07-19 15:22:43 +02:00
|
|
|
gitea_repository_upload_extra_config: ''
|
2021-03-21 17:08:17 +01:00
|
|
|
|
2023-01-24 21:22:55 +01:00
|
|
|
# Repository - Signing (repository.signing)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository---signing-repositorysigning
|
|
|
|
gitea_enable_repo_signing_options: false
|
|
|
|
gitea_repo_signing_key: 'default'
|
|
|
|
gitea_repo_signing_name: ''
|
|
|
|
gitea_repo_signing_email: ''
|
|
|
|
gitea_repo_initial_commit: 'always'
|
|
|
|
gitea_repo_default_trust_model: 'collaborator'
|
|
|
|
gitea_repo_wiki: 'never'
|
|
|
|
gitea_repo_crud_actions: 'pubkey, twofa, parentsigned'
|
|
|
|
gitea_repo_merges: ' pubkey, twofa, basesigned, commitssigned'
|
|
|
|
gitea_enable_repo_signing_extra: ''
|
|
|
|
|
2023-01-25 23:55:35 +01:00
|
|
|
# CORS (cors)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#cors-cors
|
|
|
|
gitea_enable_cors: false
|
|
|
|
gitea_cors_scheme: 'http'
|
|
|
|
gitea_cors_allow_domain: '*'
|
|
|
|
gitea_cors_allow_subdomain: false
|
|
|
|
gitea_cors_methods: 'GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS'
|
|
|
|
gitea_cors_max_age: '10m'
|
|
|
|
gitea_cors_allow_credentials: false
|
|
|
|
gitea_cors_headers: 'Content-Type,User-Agent'
|
|
|
|
gitea_cors_x_frame_options: 'SAMEORIGIN'
|
|
|
|
gitea_cors_extra: ''
|
|
|
|
|
2021-03-21 17:08:17 +01:00
|
|
|
# UI (ui)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
|
2021-03-21 02:02:15 +01:00
|
|
|
gitea_show_user_email: false
|
2023-01-25 23:55:35 +01:00
|
|
|
gitea_theme_default: 'auto'
|
|
|
|
gitea_themes: 'auto,gitea,arc-green'
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_ui_extra_config: ''
|
|
|
|
|
2023-01-25 23:55:35 +01:00
|
|
|
# UI - Metadata (ui.meta)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui---metadata-uimeta
|
|
|
|
gitea_ui_author: 'Gitea - Git with a cup of tea'
|
|
|
|
gitea_ui_description: 'Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go:'
|
|
|
|
gitea_ui_keywords: 'go,git,self-hosted,gitea,forgejo'
|
|
|
|
gitea_ui_meta_extra_config: ''
|
|
|
|
|
2021-03-21 17:08:17 +01:00
|
|
|
# Server (server)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
|
|
|
|
gitea_protocol: 'http'
|
2021-06-03 21:14:42 +02:00
|
|
|
gitea_http_domain: "{{ gitea_fqdn }}"
|
|
|
|
gitea_root_url: "http://{{ gitea_fqdn }}:3000"
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_http_listen: '127.0.0.1'
|
|
|
|
gitea_http_port: '3000'
|
|
|
|
gitea_start_ssh: true
|
2021-06-03 21:14:42 +02:00
|
|
|
gitea_ssh_domain: "{{ gitea_fqdn }}"
|
2021-03-21 17:29:04 +01:00
|
|
|
gitea_ssh_port: '2222'
|
|
|
|
gitea_ssh_listen: '0.0.0.0'
|
|
|
|
gitea_offline_mode: true
|
2023-01-26 01:01:54 +01:00
|
|
|
gitea_landing_page: 'home'
|
2021-03-21 17:29:04 +01:00
|
|
|
gitea_lfs_server_enabled: false
|
2021-03-22 00:35:16 +01:00
|
|
|
gitea_lfs_jwt_secret: ''
|
2023-01-26 01:01:54 +01:00
|
|
|
gitea_redirect_other_port: false
|
|
|
|
gitea_port_to_redirect: '80'
|
|
|
|
gitea_enable_tls_certs: false
|
|
|
|
gitea_tls_cert_file: 'https/cert.pem'
|
|
|
|
gitea_tls_key_file: 'https/key.pem'
|
|
|
|
gitea_enable_acme: false
|
|
|
|
gitea_acme_url: ''
|
|
|
|
gitea_acme_accepttos: false
|
|
|
|
gitea_acme_directory: 'https'
|
|
|
|
gitea_acme_email: ''
|
|
|
|
gitea_acme_ca_root: ''
|
2021-03-21 17:29:04 +01:00
|
|
|
gitea_server_extra_config: ''
|
2021-03-21 17:08:17 +01:00
|
|
|
|
2021-03-21 17:29:04 +01:00
|
|
|
# Database (database)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#database-database
|
2021-03-21 17:42:28 +01:00
|
|
|
gitea_db_type: 'sqlite3'
|
|
|
|
gitea_db_host: '127.0.0.0:3306'
|
|
|
|
gitea_db_name: 'root'
|
|
|
|
gitea_db_user: 'gitea'
|
|
|
|
gitea_db_password: 'lel'
|
|
|
|
gitea_db_ssl: 'disable'
|
|
|
|
gitea_db_path: "{{ gitea_home }}/data/gitea.db"
|
2021-03-22 00:05:21 +01:00
|
|
|
gitea_db_log_sql: false
|
2021-03-21 21:06:05 +01:00
|
|
|
gitea_database_extra_config: ''
|
2021-03-21 17:42:28 +01:00
|
|
|
|
2021-03-21 17:56:16 +01:00
|
|
|
# Indexer (indexer)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#indexer-indexer
|
|
|
|
gitea_repo_indexer_enabled: false
|
|
|
|
gitea_repo_indexer_include: ''
|
|
|
|
gitea_repo_indexer_exclude: ''
|
|
|
|
gitea_repo_exclude_vendored: true
|
|
|
|
gitea_repo_indexer_max_file_size: '1048576'
|
|
|
|
gitea_indexer_extra_config: ''
|
2023-01-26 01:18:15 +01:00
|
|
|
gitea_queue_issue_indexer_extra_config: ''
|
2021-03-21 17:08:17 +01:00
|
|
|
|
2021-03-21 22:45:27 +01:00
|
|
|
# Security (security)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#security-security
|
|
|
|
gitea_secret_key: ''
|
|
|
|
gitea_disable_git_hooks: true
|
2023-01-26 01:57:07 +01:00
|
|
|
gitea_disable_webhooks: false
|
|
|
|
gitea_internal_token: ''
|
2021-03-21 22:45:27 +01:00
|
|
|
gitea_password_check_pwn: false
|
|
|
|
gitea_security_extra_config: ''
|
|
|
|
|
2021-03-21 22:58:34 +01:00
|
|
|
# Service (service)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#service-service
|
2021-03-21 02:02:15 +01:00
|
|
|
gitea_disable_registration: false
|
|
|
|
gitea_register_email_confirm: false
|
|
|
|
gitea_require_signin: true
|
2021-03-22 02:16:11 +01:00
|
|
|
gitea_default_keep_mail_private: true
|
2021-03-21 02:02:15 +01:00
|
|
|
gitea_enable_captcha: true
|
2021-03-21 22:58:34 +01:00
|
|
|
gitea_show_registration_button: true
|
|
|
|
gitea_only_allow_external_registration: false
|
2021-03-21 02:02:15 +01:00
|
|
|
gitea_enable_notify_mail: false
|
|
|
|
gitea_auto_watch_new_repos: true
|
2021-03-21 22:58:34 +01:00
|
|
|
gitea_service_extra_config: ''
|
|
|
|
|
2021-03-21 23:17:13 +01:00
|
|
|
# Mailer [mailer]
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer
|
|
|
|
gitea_mailer_enabled: false
|
2023-01-26 01:57:07 +01:00
|
|
|
gitea_mailer_protocol: 'dummy'
|
|
|
|
gitea_mailer_smtp_addr: ''
|
|
|
|
gitea_mailer_smtp_port: ''
|
|
|
|
gitea_mailer_use_client_cert: false
|
|
|
|
gitea_mailer_client_cert_file: ''
|
|
|
|
gitea_mailer_client_key_file: ''
|
|
|
|
gitea_mailer_force_trust_server_cert: false
|
2021-03-21 23:17:13 +01:00
|
|
|
gitea_mailer_user: ''
|
|
|
|
gitea_mailer_password: ''
|
2023-01-26 01:57:07 +01:00
|
|
|
gitea_mailer_enable_helo: true
|
|
|
|
gitea_mailer_from: "noreply@{{ gitea_http_domain }}"
|
2021-03-21 23:17:13 +01:00
|
|
|
gitea_subject_prefix: ''
|
2023-01-26 01:57:07 +01:00
|
|
|
gitea_mailer_send_as_plaintext: false
|
2021-03-21 23:17:13 +01:00
|
|
|
gitea_mailer_extra_config: ''
|
|
|
|
|
2021-03-21 23:26:08 +01:00
|
|
|
# Session (session)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#session-session
|
|
|
|
gitea_session_provider: 'file'
|
|
|
|
gitea_session_extra_config: ''
|
|
|
|
|
2021-03-21 23:34:25 +01:00
|
|
|
# Picture (picture)
|
2023-01-26 02:17:53 +01:00
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#picture-picture
|
2021-03-21 23:34:25 +01:00
|
|
|
gitea_picture_extra_config: ''
|
2021-03-21 02:02:15 +01:00
|
|
|
|
2021-03-21 23:45:20 +01:00
|
|
|
# Issue and pull request attachments (attachment)
|
2023-01-26 02:17:53 +01:00
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
|
2021-03-21 23:45:20 +01:00
|
|
|
gitea_attachment_enabled: true
|
2023-05-12 20:32:28 +02:00
|
|
|
gitea_attachment_types: '.csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip'
|
|
|
|
gitea_attachment_max_size: 4
|
2021-03-22 00:05:21 +01:00
|
|
|
gitea_attachment_extra_config: ''
|
|
|
|
|
|
|
|
# Log (log)
|
2023-01-26 02:17:53 +01:00
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#log-log
|
2021-03-22 00:05:21 +01:00
|
|
|
gitea_log_systemd: false
|
|
|
|
gitea_log_level: 'Warn'
|
|
|
|
gitea_log_extra_config: ''
|
2021-03-21 23:45:20 +01:00
|
|
|
|
2021-03-22 00:17:13 +01:00
|
|
|
# Metrics (metrics)
|
2023-01-26 02:17:53 +01:00
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics
|
2021-03-22 00:17:13 +01:00
|
|
|
gitea_metrics_enabled: false
|
|
|
|
gitea_metrics_token: ''
|
2023-01-26 02:17:53 +01:00
|
|
|
gitea_metrics_extra: ''
|
2021-03-22 00:17:13 +01:00
|
|
|
|
|
|
|
# OAuth2 (oauth2)
|
2023-01-26 02:17:53 +01:00
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2
|
2021-03-22 00:17:13 +01:00
|
|
|
gitea_oauth2_enabled: true
|
|
|
|
gitea_oauth2_jwt_secret: ''
|
|
|
|
gitea_oauth2_extra_config: ''
|
|
|
|
|
2023-01-26 02:17:53 +01:00
|
|
|
# Federation (federation)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#federation-federation
|
|
|
|
gitea_federation_enabled: false
|
|
|
|
gitea_federation_share_user_stats: false
|
|
|
|
gitea_federation_extra: ''
|
|
|
|
|
2023-01-26 02:53:50 +01:00
|
|
|
# Packages (packages)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#packages-packages
|
|
|
|
gitea_packages_enabled: true
|
|
|
|
gitea_packages_extra: ''
|
|
|
|
|
|
|
|
# LFS (lfs)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#lfs-lfs
|
|
|
|
gitea_lfs_storage_type: 'local'
|
|
|
|
gitea_lfs_serve_direct: false
|
|
|
|
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
|
|
|
|
gitea_lfs_extra: ''
|
|
|
|
|
2023-05-08 07:26:17 +02:00
|
|
|
# Actions (actions)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
|
|
|
|
gitea_actions_enabled: false
|
|
|
|
gitea_actions_default_actions_url: "https://gitea.com"
|
2023-05-09 01:43:05 +02:00
|
|
|
gitea_actions_extra: ''
|
|
|
|
|
2023-01-26 02:53:50 +01:00
|
|
|
# Other (other)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
|
|
|
|
gitea_other_show_footer_branding: false
|
|
|
|
gitea_other_show_footer_version: true
|
|
|
|
gitea_other_show_footer_template_load_time: true
|
|
|
|
gitea_other_enable_sitemap: true
|
|
|
|
gitea_other_enable_feed: true
|
|
|
|
|
2021-03-22 00:35:16 +01:00
|
|
|
# additional gitea config
|
2020-12-05 21:10:23 +01:00
|
|
|
gitea_extra_config: ""
|
2021-02-13 05:32:27 +01:00
|
|
|
|
2021-03-22 00:35:16 +01:00
|
|
|
# fail2ban
|
|
|
|
gitea_fail2ban_enabled: false
|
|
|
|
gitea_fail2ban_jail_maxretry: '10'
|
|
|
|
gitea_fail2ban_jail_findtime: '3600'
|
|
|
|
gitea_fail2ban_jail_bantime: '900'
|
|
|
|
gitea_fail2ban_jail_action: 'iptables-allports'
|
2021-06-03 17:59:14 +02:00
|
|
|
|
|
|
|
# gitea customisation
|
|
|
|
gitea_custom_search: "files/host_files/{{ inventory_hostname }}/gitea"
|
|
|
|
gitea_customize_logo: false
|
|
|
|
gitea_custom: "{{ gitea_home }}/custom"
|
2021-06-03 21:06:04 +02:00
|
|
|
gitea_customize_footer: false
|
2021-06-03 22:51:28 +02:00
|
|
|
gitea_customize_files: false
|
|
|
|
gitea_customize_files_path: "{{ gitea_custom_search }}/gitea_files"
|