-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
54 lines (53 loc) · 1.45 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
# Gitea stack configuration
# Configuration Cheat Sheet: https://docs.gitea.io/en-us/config-cheat-sheet/
gitea:
run_mode: prod
# Type of database used for gitea, example: postgres, mysql, mssql or sqlite3
# NOTE: If you set type to 'sqlite3', then rest database configuration can be ignored
database:
type: "{{ db_type }}"
host: "{{ db_host|default(omit) }}"
port: "{{ db_port|default(omit) }}"
name: "{{ db_name|default(omit) }}"
user: "{{ db_user|default(omit) }}"
password: "{{ db_password|default(omit) }}"
server:
disable_ssh: false
domain: "{{ base_hostname }}"
ssh_domain: "{{ base_hostname }}"
root_url: "https://{{ base_hostname }}/"
# Mailer configuration
# NODE: If you want to use authentication, then you need to provide user and password
# or leave them empty
mailer:
enable: false
type: smtp
host: 'mail.example.com'
port: 25
is_tls_enabled: false
skip_tls_verify: true
from: "Gitea <[email protected]>"
user: ""
password: ""
# Webhook configuration
webhook:
enable: true
allowed_hosts_list: '*.office.com'
# Migration configuration
migration:
enable: true
allowed_domains: '*.example.com'
skip_tls_verify: true
# Proxy configuration
proxy:
enable: false
url: "{{ http_proxy|default(omit) }}"
hosts: '*.office.com'
# Stack default resource configuration
reservations:
cpus: "0.5"
memory: 256M
limits:
cpus: "1"
memory: 1G