ansible/roles/gitea/defaults/main.yaml

70 lines
2.0 KiB
YAML
Raw Normal View History

2019-11-25 00:50:21 +00:00
---
gitea_go_arch_map:
i386: '386'
x86_64: 'amd64'
gitea_checksums:
x86_64: sha256:3faa3e97a621c3b9ecba7917fd870c07c3c6c88c8cc7c29ecbf2c7b9802d91b0
gitea_go_arch: "{{ gitea_go_arch_map[ansible_architecture] | default('amd64') }}"
gitea_checksum: "{{ gitea_checksums[ansible_architecture] | default('amd64') }}"
2019-11-25 00:50:21 +00:00
gitea_service_name: gitea.service
gitea_service_state: started
gitea_service_enabled: yes
gitea_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-{{ ansible_system | lower }}-{{ gitea_go_arch }}"
2019-11-25 00:50:21 +00:00
gitea_bin_path: /usr/local/bin
gitea_var_path: /var/lib/gitea
gitea_log_path: /var/log/gitea
gitea_etc_path: /etc/gitea
gitea_path: "{{ gitea_bin_path }}/gitea"
gitea_config_path: "{{ gitea_etc_path }}/app.ini"
gitea_systemd_unit_path: /etc/systemd/system/gitea.service
gitea_user: git
gitea_group: git
gitea_shell: /bin/bash
gitea_gecos: Git Version Control
gitea_password: !
gitea_home_path: /home/git
2019-12-01 19:44:49 +00:00
gitea_port: 3001
2019-11-25 00:50:21 +00:00
gitea_config:
2019-11-29 19:17:13 +00:00
DEFAULT:
run_mode: prod
2019-11-25 00:50:21 +00:00
server:
2019-12-01 19:44:49 +00:00
http_port: "{{ gitea_port }}"
http_addr: localhost
2019-11-25 00:50:21 +00:00
domain: "{{ gitea_domain }}"
root_url: "{{ gitea_ssl_enabled | ternary('https', 'http') }}://{{ gitea_domain }}/"
oauth2:
jwt_secret: "{{ vault_gitea_jwt_secret }}"
security:
install_lock: true
internal_token: "{{ vault_gitea_internal_token }}"
database:
db_type: sqlite3
log:
root_path: /var/log/gitea
mode: file
access: file
router: file
log.console:
colorize: no
service:
2022-08-30 12:13:05 +00:00
register_manual_confirm: true
2024-04-14 22:54:33 +00:00
metrics:
enabled: true
2019-11-25 00:50:21 +00:00
gitea_var_tree:
- "{{ gitea_var_path }}"
- "{{ gitea_var_path }}/custom"
- "{{ gitea_var_path }}/data"
- "{{ gitea_var_path }}/log"
2020-01-01 17:18:26 +00:00
- "{{ gitea_var_path }}/backup"
2019-11-25 00:50:21 +00:00
gitea_ssl_enabled: yes
2024-04-14 22:54:33 +00:00
gitea_ssl_certificate: "/var/lib/lego/certificates/{{ gitea_domain }}.crt"
gitea_ssl_certificate_key: "/var/lib/lego/certificates/{{ gitea_domain }}.key"
2019-11-25 00:50:21 +00:00
#gitea_ssl_dhparam: "/etc/letsencrypt/ssl-dhparams.pem"