xoxys.gitea/defaults/main.yml

76 lines
2.2 KiB
YAML
Raw Normal View History

2018-12-08 22:21:48 +01:00
---
2019-07-31 17:50:40 +02:00
gitea_version: 1.9.0
2018-12-08 22:21:48 +01:00
gitea_user: "gitea_adm"
gitea_user_home: "/home/{{ gitea_user }}"
gitea_group: "{{ gitea_user }}"
gitea_extra_groups: []
2018-12-08 22:21:48 +01:00
gitea_packages:
- git
gitea_base_dir: "/opt/gitea"
gitea_bin_dir: "{{ gitea_base_dir }}/bin"
gitea_config_dir: "{{ gitea_base_dir }}/custom/conf"
gitea_data_dir: "{{ gitea_base_dir }}/data"
gitea_bind_ip: 127.0.0.1
2018-12-08 22:21:48 +01:00
gitea_bind_port: 61000
gitea_listen_address: http://gitea.example.com
2018-12-08 22:21:48 +01:00
2019-07-19 17:55:11 +02:00
gitea_install_lock: "true"
2019-10-17 08:26:10 +02:00
# @var gitea_secret:description: Should be replaced by your own secret.
2018-12-08 22:21:48 +01:00
gitea_secret: "1234567ABCDEFG"
2019-10-17 08:26:10 +02:00
# @var gitea_token:description: Should be replaced by your own secret.
2018-12-08 23:53:58 +01:00
gitea_token: "akslkaldasasifiuvsiasfa7s7f8as7f8asd"
2018-12-08 22:21:48 +01:00
gitea_run_mode: prod
gitea_landing_page: explore
2019-07-19 17:55:11 +02:00
gitea_disable_registration: "true"
2018-12-08 22:21:48 +01:00
2019-10-27 16:17:08 +01:00
gitea_db_type: pgsql
2019-10-27 16:23:27 +01:00
gitea_db_server: localhost
2019-10-27 16:17:08 +01:00
gitea_db_port: 5432
gitea_db_name: gitea
gitea_db_user: pggitea
gitea_db_password: secret
gitea_db_ssl_mode: disabled
gitea_iptables_enabled: False
gitea_open_ports:
- name: allow_gitea_web
rules: |
-A INPUT -m state --state NEW -p tcp --dport {{ gitea_bind_port }} -j ACCEPT
state: present
2018-12-08 22:21:48 +01:00
gitea_global_log_level: Info
2019-01-09 20:36:53 +01:00
gitea_global_log_dir: "{{ gitea_base_dir }}/log"
2018-12-08 22:21:48 +01:00
gitea_file_log_level: "{{ gitea_global_log_level }}"
2019-07-19 17:55:11 +02:00
gitea_file_log_rotate_enabled: "true"
gitea_file_log_rotate_daily_enabled: "true"
2018-12-08 22:21:48 +01:00
gitea_file_log_rotate_max_days: 7
gitea_repository_upload_max_filesize: 3
gitea_repository_upload_max_files: 5
gitea_attachment_max_filesize: 3
gitea_attachment_max_files: 5
gitea_mail_service_enabled: False
2018-12-09 01:42:43 +01:00
gitea_mail_service_from: '"System" <systemmail@example.com>'
2019-07-19 09:55:47 +02:00
gitea_no_reply_address: noreply.example.org
gitea_oauth_provider_enabled: False
gitea_access_token_expiration_time: 3600
gitea_refresh_token_expiration_time: 730
2019-07-19 17:55:11 +02:00
gitea_invalidate_refresh_tokens: "false"
2019-10-17 08:26:10 +02: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 09:55:47 +02:00
gitea_jwt_secret: Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU
2018-12-08 22:21:48 +01: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