ansible-roles/roles/gitea/defaults/main.yml

46 lines
1.5 KiB
YAML

---
# Version to install
gitea_version: 1.19.3
# URL to the binary
gitea_bin_url: https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64
# sha256 of the binary
gitea_bin_sha256: 1865e72b1302e2bae0a357b30fd747b770b622198e155c2bdf776cfbffca38b7
# Handle updates. If set to false, ansible will only install
# Gitea and then won't touch an existing installation
gitea_manage_upgrade: True
# Root directory of the gitea
gitea_root_dir: /opt/gitea
# The domain name will be used to build GIT URL in the UI
gitea_domain: "{{ inventory_hostname }}"
# Used to build ssh URL. Can be different from gitea_domain, if using a reverse proxy for example
gitea_ssh_domain: "{{ gitea_domain }}"
# Set to the public URL where gitea will be available
gitea_public_url: 'http://%(DOMAIN)s:%(HTTP_PORT)s/'
# Port of the web interface (plain text http)
gitea_web_port: 3280
# Port for SSH access
gitea_ssh_port: 22
# Used to restrict access to the web interface
gitea_web_src_ip: []
# If set, will read username from the following HTTP header
# use when behind a reverse proxy
# gitea_username_header: Auth-User
# Enable user registration
gitea_registration: False
# Default branch name
gitea_default_branch: master
# Database settings
gitea_db_server: "{{ mysql_server | default('localhost') }}"
gitea_db_name: gitea
gitea_db_user: gitea
# A random pass will be created if not set here
# gitea_db_pass: xxxxx
# List of allowed hosts for webhooks. Can be IP, CIDR, hosts, hosts with wildcards or the special values loopback, private, external, *
gitea_allowed_hosts: []