150 lines
4.7 KiB
YAML
150 lines
4.7 KiB
YAML
---
|
|
|
|
gitea_bindir: "/usr/local/bin/gitea"
|
|
gitea_lib_dir: "/var/lib/gitea"
|
|
gitea_user: 'git'
|
|
gitea_group: 'git'
|
|
gitea_confdir: '/etc/gitea/app.ini'
|
|
|
|
gitea_flavor: 'forgejo'
|
|
gitea_version: '1.19.0-2'
|
|
gitea_arch: 'linux-amd64'
|
|
#gitea_download_url: 'https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-{{ gitea_arch }}'
|
|
|
|
# Uncomment below if you want to add custom themes or images
|
|
#gitea_extra_files_path: '../img' # the folder name where you have the images you want to deploy
|
|
#gitea_theme_dir: '{{ gitea_lib_dir }}/custom'
|
|
#gitea_custom_themes:
|
|
# - name: '' #add name of the theme
|
|
# repo: '' #add git repository of the theme
|
|
# enable: 'true' #set it to false to remove it
|
|
|
|
#[CONFIG]
|
|
# App.ini file variables
|
|
gitea_base_config:
|
|
- 'APP_NAME = Gitea: Git with a cup of tea'
|
|
- 'RUN_USER = git'
|
|
- 'RUN_MODE = prod'
|
|
|
|
gitea_oauth2_config:
|
|
- 'JWT_SECRET = ' #41 random chars
|
|
|
|
gitea_ui_config:
|
|
- 'THEMES = auto,arc-green,gitea,forgejo-auto,forgejo-light,forgejo-dark' # add only the default ones, not themes ones
|
|
- 'DEFAULT_THEME = arc-green'
|
|
|
|
gitea_security_config:
|
|
- 'INTERNAL_TOKEN = ' #106 random chars
|
|
- 'INSTALL_LOCK = true'
|
|
- 'SECRET_KEY = ' #64 random chars
|
|
|
|
gitea_database_config:
|
|
- 'DB_TYPE = postgres'
|
|
- 'HOST = localhost:5432'
|
|
- 'NAME = gitea'
|
|
- 'USER = admin'
|
|
- 'PASSWD = changeme'
|
|
- 'SSL_MODE = disable'
|
|
|
|
gitea_repository_config:
|
|
- 'ROOT = /home/git/gitea-repositories'
|
|
|
|
gitea_server_config:
|
|
- 'SSH_DOMAIN = git.example.org'
|
|
- 'DOMAIN = 192.168.33.14'
|
|
- 'HTTP_PORT = 3000'
|
|
- 'ROOT_URL = http://192.168.33.14:3000'
|
|
- 'DISABLE_SSH = false'
|
|
- 'SSH_PORT = 22'
|
|
- 'LFS_START_SERVER = true'
|
|
- 'LFS_JWT_SECRET = ' #40 random chars
|
|
- 'OFFLINE_MODE = false'
|
|
|
|
gitea_lfs_config:
|
|
- 'PATH = /home/git/data/lfs'
|
|
|
|
gitea_mailer_config:
|
|
- 'ENABLED = true'
|
|
- 'SMTP_ADDR = mail.example.org'
|
|
- 'SMTP_PORT = 587'
|
|
- 'FROM = noreply@example.org'
|
|
- 'USER = noreply@example.org'
|
|
- 'PASSWD = CHANGEME' #PASSWD
|
|
- 'PROTOCOL = smtp+starttls'
|
|
|
|
gitea_service_config:
|
|
- 'REGISTER_EMAIL_CONFIRM = false'
|
|
- 'ENABLE_NOTIFY_MAIL = false'
|
|
- 'DISABLE_REGISTRATION = false'
|
|
- 'ALLOW_ONLY_EXTERNAL_REGISTRATION = false'
|
|
- 'ENABLE_CAPTCHA = false'
|
|
- 'REQUIRE_SIGNIN_VIEW = true'
|
|
- 'DEFAULT_KEEP_EMAIL_PRIVATE = true'
|
|
- 'DEFAULT_ALLOW_CREATE_ORGANIZATION = true'
|
|
- 'DEFAULT_ENABLE_TIMETRACKING = true'
|
|
- 'NO_REPLY_ADDRESS = noreply@example.org'
|
|
|
|
gitea_mirror_config:
|
|
- 'ENABLED = true'
|
|
|
|
gitea_picture_config:
|
|
- 'DISABLE_GRAVATAR = true'
|
|
- 'ENABLE_FEDERATED_AVATAR = true'
|
|
|
|
gitea_openid_config:
|
|
- 'ENABLE_OPENID_SIGNIN = false'
|
|
- 'ENABLE_OPENID_SIGNUP = false'
|
|
|
|
gitea_session_config:
|
|
- 'PROVIDER = file'
|
|
|
|
gitea_log_config:
|
|
- 'MODE = file'
|
|
- 'LEVEL = Info'
|
|
- 'ROOT_PATH = /home/git/log'
|
|
|
|
# External renderers
|
|
# See https://docs.gitea.io/en-us/external-renderers/
|
|
gitea_markup_config:
|
|
- name: 'asciidoc'
|
|
apt: 'asciidoc'
|
|
enable: 'false'
|
|
- name: 'jupyter'
|
|
apt: 'jupyter'
|
|
enable: 'false'
|
|
- name: 'html'
|
|
apt: ''
|
|
enable: 'false'
|
|
|
|
#apt
|
|
gitea_apt_list:
|
|
- git
|
|
|
|
# POSTGRES
|
|
postgresql_version: 13
|
|
postgresql_listen_addresses:
|
|
- "127.0.0.1"
|
|
|
|
postgresql_pg_hba_default:
|
|
- { type: local, database: all, user: '{{ postgresql_admin_user }}', address: '', method: '{{ postgresql_default_auth_method }}', comment: '' }
|
|
- { type: local, database: all, user: all, address: '', method: '{{ postgresql_default_auth_method }}', comment: '"local" is for Unix domain socket connections only' }
|
|
- { type: host, database: all, user: all, address: '127.0.0.1/32', method: '{{ postgresql_default_auth_method_hosts }}', comment: 'IPv4 local connections:' }
|
|
|
|
postgresql_databases:
|
|
- name: gitea
|
|
owner: admin # optional; specify the owner of the database
|
|
hstore: no # flag to install the hstore extension on this database (yes/no)
|
|
uuid_ossp: no # flag to install the uuid-ossp extension on this database (yes/no)
|
|
citext: no # flag to install the citext extension on this database (yes/no)
|
|
|
|
postgresql_users:
|
|
- name: admin
|
|
pass: changeme
|
|
encrypted: yes # denotes if the password is already encrypted.
|
|
|
|
postgresql_user_privileges:
|
|
- name: admin # user name
|
|
db: gitea # database
|
|
priv: "ALL" # privilege string format: example: INSERT,UPDATE/table:SELECT/anothertable:ALL
|
|
role_attr_flags: "" # role attribute flags
|