2019-03-16 12:51:32 +01:00
|
|
|
---
|
2021-03-21 02:02:15 +01:00
|
|
|
# gitea version
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_version: '1.13.4'
|
2019-04-30 02:57:14 +02:00
|
|
|
gitea_version_check: true
|
2020-05-17 15:56:23 +02:00
|
|
|
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_arch }}"
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_gpg_key: '7C9E68152594688862D62AF62D9AE806EC1592E2'
|
|
|
|
gitea_gpg_server: 'hkp://keyserver.ubuntu.com:80'
|
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'
|
|
|
|
gitea_home: '/var/lib/gitea'
|
|
|
|
gitea_shell: '/bin/false'
|
|
|
|
|
|
|
|
# Overall (DEFAULT)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#overall-default
|
|
|
|
gitea_app_name: 'Gitea'
|
|
|
|
gitea_user: 'gitea'
|
|
|
|
gitea_run_mode: 'prod'
|
|
|
|
|
|
|
|
# Repository (repository)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
|
2020-09-18 17:23:25 +02:00
|
|
|
gitea_repository_root: "{{ gitea_home }}/repos"
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_force_private: false
|
|
|
|
gitea_user_repo_limit: '-1'
|
|
|
|
gitea_disable_http_git: false
|
|
|
|
gitea_default_branch: 'main'
|
|
|
|
gitea_repository_extra_config: ''
|
|
|
|
|
|
|
|
# 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
|
2021-03-21 17:08:17 +01:00
|
|
|
gitea_theme_default: 'gitea'
|
|
|
|
gitea_themes: 'gitea,arc-green'
|
|
|
|
gitea_ui_extra_config: ''
|
|
|
|
|
|
|
|
# Server (server)
|
|
|
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
|
|
|
|
gitea_protocol: 'http'
|
|
|
|
gitea_http_domain: 'localhost'
|
|
|
|
gitea_root_url: 'http://localhost:3000'
|
|
|
|
gitea_http_listen: '127.0.0.1'
|
|
|
|
gitea_http_port: '3000'
|
|
|
|
# gitea_http_letsencrypt_mail: 'mail@example.com'
|
|
|
|
gitea_start_ssh: true
|
|
|
|
gitea_ssh_domain: "{{ gitea_http_domain }}"
|
2021-03-21 17:29:04 +01:00
|
|
|
gitea_ssh_port: '2222'
|
|
|
|
gitea_ssh_listen: '0.0.0.0'
|
|
|
|
gitea_offline_mode: true
|
|
|
|
gitea_lfs_server_enabled: false
|
|
|
|
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
|
|
|
|
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-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: ''
|
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_internal_token: ''
|
|
|
|
gitea_disable_git_hooks: true
|
|
|
|
gitea_password_check_pwn: false
|
|
|
|
gitea_security_extra_config: ''
|
|
|
|
|
2021-03-21 17:08:17 +01:00
|
|
|
# look and feel
|
2021-03-21 02:02:15 +01:00
|
|
|
gitea_disable_gravatar: true
|
|
|
|
gitea_disable_registration: false
|
|
|
|
gitea_register_email_confirm: false
|
|
|
|
gitea_only_allow_external_registration: false
|
|
|
|
gitea_show_registration_button: true
|
|
|
|
gitea_require_signin: true
|
|
|
|
gitea_enable_captcha: true
|
|
|
|
gitea_enable_notify_mail: false
|
|
|
|
gitea_auto_watch_new_repos: true
|
|
|
|
|
|
|
|
# security
|
2021-03-21 02:22:36 +01:00
|
|
|
gitea_lfs_jwt_secret: ''
|
|
|
|
gitea_oauth2_jwt_secret: ''
|
2017-01-10 22:09:34 +01:00
|
|
|
|
2021-03-21 02:02:15 +01:00
|
|
|
gitea_systemd_cap_net_bind_service: false
|
2017-01-10 22:09:34 +01:00
|
|
|
|
2019-03-08 12:29:34 +01:00
|
|
|
gitea_mailer_enabled: false
|
2019-03-10 14:14:57 +01:00
|
|
|
gitea_mailer_skip_verify: false
|
|
|
|
gitea_mailer_tls_enabled: true
|
2019-03-16 12:51:32 +01:00
|
|
|
gitea_mailer_host: localhost:25
|
|
|
|
gitea_mailer_from: noreply@your.domain
|
2019-06-10 21:10:39 +02:00
|
|
|
gitea_mailer_user: ""
|
|
|
|
gitea_mailer_password: ""
|
2021-03-21 00:27:27 +01:00
|
|
|
gitea_subject_prefix: ""
|
2020-07-21 14:18:08 +02:00
|
|
|
gitea_mailer_type: smtp
|
2019-03-08 13:12:16 +01:00
|
|
|
|
2021-03-21 00:27:27 +01:00
|
|
|
gitea_log_systemd: false
|
|
|
|
gitea_log_only_warning: true
|
|
|
|
|
2019-03-09 21:40:56 +01:00
|
|
|
gitea_fail2ban_enabled: false
|
2019-03-09 21:46:23 +01:00
|
|
|
gitea_fail2ban_jail_maxretry: 10
|
|
|
|
gitea_fail2ban_jail_findtime: 3600
|
|
|
|
gitea_fail2ban_jail_bantime: 900
|
|
|
|
gitea_fail2ban_jail_action: iptables-allports
|
|
|
|
|
2019-03-10 14:20:55 +01:00
|
|
|
gitea_oauth2_enabled: true
|
2019-12-21 13:08:19 +01:00
|
|
|
|
|
|
|
gitea_metrics_enabled: false
|
|
|
|
gitea_metrics_token: ~
|
2020-05-09 23:01:51 +02:00
|
|
|
|
2021-03-02 10:35:13 +01:00
|
|
|
gitea_log_level: Info
|
|
|
|
|
2020-12-05 21:10:23 +01:00
|
|
|
gitea_extra_config: ""
|
2021-02-13 05:32:27 +01:00
|
|
|
|
2021-02-13 05:39:24 +01:00
|
|
|
gitea_backup_on_upgrade: false
|
2021-02-13 05:32:27 +01:00
|
|
|
gitea_backup_location: "{{ gitea_home }}/backups/"
|