11---
2+ # Choose between https://forgejo.org/ and https://gitea.io/
3+ gitea_fork : ' gitea' # 'gitea' and 'forgejo' are valid options
4+
25# gitea version
36# Use 'latest' to auto-update; upgrading past role version may lead to errors.
4- gitea_version : ' 1.15.3 '
7+ gitea_version : ' latest '
58gitea_version_check : true
69gitea_gpg_key : ' 7C9E68152594688862D62AF62D9AE806EC1592E2'
10+ gitea_forgejo_gpg_key : ' EB114F5E6C0DC2BCDD183550A4B61A2DC5923710'
711gitea_gpg_server : ' hkps://keys.openpgp.org'
812gitea_backup_on_upgrade : false
913gitea_backup_location : " {{ gitea_home }}/backups/"
1014submodules_versioncheck : false
1115
1216# gitea in the linux world
1317gitea_group : ' gitea'
18+ # gitea_groups: [] # Optional a list of groups user gitea will be added to
1419gitea_home : ' /var/lib/gitea'
20+ gitea_user_home : ' {{ gitea_home }}'
21+ gitea_executable_path : ' /usr/local/bin/gitea'
22+ gitea_forgejo_executable_path : ' /usr/local/bin/forgejo'
23+ gitea_configuration_path : ' /etc/gitea'
1524gitea_shell : ' /bin/false'
1625gitea_systemd_cap_net_bind_service : false
1726
@@ -24,38 +33,91 @@ gitea_fqdn: 'localhost'
2433
2534# Repository (repository)
2635# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
27- gitea_repository_root : " {{ gitea_home }}/repos"
28- gitea_force_private : false
29- gitea_user_repo_limit : ' -1'
30- gitea_disable_http_git : false
3136gitea_default_branch : ' main'
3237gitea_default_private : ' last'
38+ gitea_default_repo_units : ' repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects'
39+ gitea_disabled_repo_units : ' '
40+ gitea_disable_http_git : false
41+ gitea_disable_stars : false
42+ gitea_enable_push_create_org : false
43+ gitea_enable_push_create_user : false
44+ gitea_force_private : false
45+ gitea_user_repo_limit : ' -1'
46+ gitea_repository_root : " {{ gitea_home }}/repos"
3347gitea_repository_extra_config : ' '
48+
49+ # Repository - Upload (repository.upload)
50+ # -> https://docs.gitea.io/en-us/administration/config-cheat-sheet/#repository---upload-repositoryupload
51+ gitea_repository_upload_enabled : true
52+ gitea_repository_upload_max_size : 4
3453gitea_repository_upload_extra_config : ' '
3554
55+ # Repository - Signing (repository.signing)
56+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository---signing-repositorysigning
57+ gitea_enable_repo_signing_options : false
58+ gitea_repo_signing_key : ' default'
59+ gitea_repo_signing_name : ' '
60+ gitea_repo_signing_email : ' '
61+ gitea_repo_initial_commit : ' always'
62+ gitea_repo_default_trust_model : ' collaborator'
63+ gitea_repo_wiki : ' never'
64+ gitea_repo_crud_actions : ' pubkey, twofa, parentsigned'
65+ gitea_repo_merges : ' pubkey, twofa, basesigned, commitssigned'
66+ gitea_enable_repo_signing_extra : ' '
67+
68+ # CORS (cors)
69+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#cors-cors
70+ gitea_enable_cors : false
71+ gitea_cors_scheme : ' http'
72+ gitea_cors_allow_domain : ' *'
73+ gitea_cors_allow_subdomain : false
74+ gitea_cors_methods : ' GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS'
75+ gitea_cors_max_age : ' 10m'
76+ gitea_cors_allow_credentials : false
77+ gitea_cors_headers : ' Content-Type,User-Agent'
78+ gitea_cors_x_frame_options : ' SAMEORIGIN'
79+ gitea_cors_extra : ' '
80+
3681# UI (ui)
3782# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
3883gitea_show_user_email : false
39- gitea_theme_default : ' gitea '
40- gitea_themes : ' gitea,arc-green'
84+ gitea_theme_default : ' auto '
85+ gitea_themes : ' auto, gitea,arc-green'
4186gitea_ui_extra_config : ' '
4287
88+ # UI - Metadata (ui.meta)
89+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui---metadata-uimeta
90+ gitea_ui_author : ' Gitea - Git with a cup of tea'
91+ gitea_ui_description : ' Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go:'
92+ gitea_ui_keywords : ' go,git,self-hosted,gitea,forgejo'
93+ gitea_ui_meta_extra_config : ' '
94+
4395# Server (server)
4496# -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
4597gitea_protocol : ' http'
4698gitea_http_domain : " {{ gitea_fqdn }}"
4799gitea_root_url : " http://{{ gitea_fqdn }}:3000"
48100gitea_http_listen : ' 127.0.0.1'
49101gitea_http_port : ' 3000'
50- # gitea_http_letsencrypt_mail: '[email protected] '51102gitea_start_ssh : true
52103gitea_ssh_domain : " {{ gitea_fqdn }}"
53104gitea_ssh_port : ' 2222'
54105gitea_ssh_listen : ' 0.0.0.0'
55106gitea_offline_mode : true
107+ gitea_landing_page : ' home'
56108gitea_lfs_server_enabled : false
57- gitea_lfs_content_path : " {{ gitea_home }}/data/lfs"
58109gitea_lfs_jwt_secret : ' '
110+ gitea_redirect_other_port : false
111+ gitea_port_to_redirect : ' 80'
112+ gitea_enable_tls_certs : false
113+ gitea_tls_cert_file : ' https/cert.pem'
114+ gitea_tls_key_file : ' https/key.pem'
115+ gitea_enable_acme : false
116+ gitea_acme_url : ' '
117+ gitea_acme_accepttos : false
118+ gitea_acme_directory : ' https'
119+ gitea_acme_email : ' '
120+ gitea_acme_ca_root : ' '
59121gitea_server_extra_config : ' '
60122
61123# Database (database)
@@ -78,12 +140,14 @@ gitea_repo_indexer_exclude: ''
78140gitea_repo_exclude_vendored : true
79141gitea_repo_indexer_max_file_size : ' 1048576'
80142gitea_indexer_extra_config : ' '
143+ gitea_queue_issue_indexer_extra_config : ' '
81144
82145# Security (security)
83146# -> https://docs.gitea.io/en-us/config-cheat-sheet/#security-security
84147gitea_secret_key : ' '
85- gitea_internal_token : ' '
86148gitea_disable_git_hooks : true
149+ gitea_disable_webhooks : false
150+ gitea_internal_token : ' '
87151gitea_password_check_pwn : false
88152gitea_security_extra_config : ' '
89153
@@ -103,14 +167,19 @@ gitea_service_extra_config: ''
103167# Mailer [mailer]
104168# -> https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer
105169gitea_mailer_enabled : false
106- gitea_mailer_host : ' localhost:25'
107- gitea_mailer_skip_verify : false
108- gitea_mailer_tls_enabled : true
109- gitea_mailer_from : " noreply@{{ gitea_http_domain }}"
170+ gitea_mailer_protocol : ' dummy'
171+ gitea_mailer_smtp_addr : ' '
172+ gitea_mailer_smtp_port : ' '
173+ gitea_mailer_use_client_cert : false
174+ gitea_mailer_client_cert_file : ' '
175+ gitea_mailer_client_key_file : ' '
176+ gitea_mailer_force_trust_server_cert : false
110177gitea_mailer_user : ' '
111178gitea_mailer_password : ' '
179+ gitea_mailer_enable_helo : true
180+ gitea_mailer_from : " noreply@{{ gitea_http_domain }}"
112181gitea_subject_prefix : ' '
113- gitea_mailer_type : smtp
182+ gitea_mailer_send_as_plaintext : false
114183gitea_mailer_extra_config : ' '
115184
116185# Session (session)
@@ -119,27 +188,65 @@ gitea_session_provider: 'file'
119188gitea_session_extra_config : ' '
120189
121190# Picture (picture)
122- gitea_disable_gravatar : true
191+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#picture-picture
123192gitea_picture_extra_config : ' '
124193
125194# Issue and pull request attachments (attachment)
195+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
126196gitea_attachment_enabled : true
197+ 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'
198+ gitea_attachment_max_size : 4
127199gitea_attachment_extra_config : ' '
128200
129201# Log (log)
202+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#log-log
130203gitea_log_systemd : false
131204gitea_log_level : ' Warn'
132205gitea_log_extra_config : ' '
133206
134207# Metrics (metrics)
208+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics
135209gitea_metrics_enabled : false
136210gitea_metrics_token : ' '
211+ gitea_metrics_extra : ' '
137212
138213# OAuth2 (oauth2)
214+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2
139215gitea_oauth2_enabled : true
140216gitea_oauth2_jwt_secret : ' '
141217gitea_oauth2_extra_config : ' '
142218
219+ # Federation (federation)
220+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#federation-federation
221+ gitea_federation_enabled : false
222+ gitea_federation_share_user_stats : false
223+ gitea_federation_extra : ' '
224+
225+ # Packages (packages)
226+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#packages-packages
227+ gitea_packages_enabled : true
228+ gitea_packages_extra : ' '
229+
230+ # LFS (lfs)
231+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#lfs-lfs
232+ gitea_lfs_storage_type : ' local'
233+ gitea_lfs_serve_direct : false
234+ gitea_lfs_content_path : " {{ gitea_home }}/data/lfs"
235+ gitea_lfs_extra : ' '
236+
237+ # Actions (actions)
238+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
239+ gitea_actions_enabled : false
240+ gitea_actions_default_actions_url : " https://gitea.com"
241+ gitea_actions_extra : ' '
242+
243+ # Other (other)
244+ # -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
245+ gitea_other_show_footer_version : true
246+ gitea_other_show_footer_template_load_time : true
247+ gitea_other_enable_sitemap : true
248+ gitea_other_enable_feed : true
249+
143250# additional gitea config
144251gitea_extra_config : " "
145252
0 commit comments