aboutsummaryrefslogtreecommitdiff
path: root/roles/gitea/templates/app.ini.j2
blob: e3dd930c1226614ed513a08e97f9b3ff3a8e0be1 (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
; vi: ft=dosini

APP_NAME = {{ gitea.name }}
RUN_USER = git
RUN_MODE = prod

[repository]
ROOT = /home/git/gitea-repositories

[server]
PROTOCOL = https
DOMAIN = {{ ansible_facts.fqdn }}
ROOT_URL = {{ gitea.root_url }}
STATIC_URL_PREFIX =
HTTP_ADDR = 0.0.0.0
HTTP_PORT = 8443
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
DISABLE_SSH = false
SSH_DOMAIN = %(DOMAIN)s
SSH_PORT = 22
SSH_CREATE_AUTHORIZED_KEYS_FILE = true
SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true

CERT_FILE = {{ gitea.ssl.cert }}
KEY_FILE = {{ gitea.ssl.key }}

LANDING_PAGE = login

[database]
DB_TYPE = mysql
HOST = {{ gitea.mysql.host }}
NAME = {{ gitea.mysql.db }}
USER = {{ gitea.mysql.user }}
PASSWD = `{{ gitea.mysql.passwd }}`
SSL_MODE = true
CHARSET = utf8mb4

[security]
INSTALL_LOCK = true
SECRET_KEY = {{ sec_key.content }}
DISABLE_GIT_HOOKS = true
INTERNAL_TOKEN = {{ int_tok.content }}

[service]
DISABLE_REGISTRATION = true

REQUIRE_SIGNIN_VIEW = true
ENABLE_NOTIFY_MAIL = {{ gitea.mail.enable }}


[webhook]
ALLOWED_HOST_LIST = {{ gitea.webhook_allowed_hosts }}

[mailer]
ENABLED = {{ gitea.mail.enable }}
{% if gitea.mail.enable %}
SEND_BUFFER_LEN = 100
SUBJECT_PREFIX = {{ gitea.mail.subject_prefix }}
HOST = {{ gitea.mail.smtp_host }}
SKIP_VERIFY = {{ gitea.mail.skip_verify }}
IS_TLS_ENABLED = {{ gitea.mail.tls }}
FROM = {{ gitea.mail.from }}
USER = {{ gitea.mail.user }}
PASSWD = `{{ gitea.mail.pass }}`
SEND_AS_PLAIN_TEXT = {{ gitea.mail.plain_text }}
MAILER_TYPE = smtp
SENDMAIL_PATH = sendmail
SENDMAIL_ARGS =
SENDMAIL_TIMEOUT = 5m
{% endif %}

[log]
MODE = console
ROUTER_LOG_LEVEL = Info
ROUTER = console

[git]
PATH =

[oauth2]
ENABLE = false