-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.example
108 lines (93 loc) · 3.87 KB
/
pillar.example
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
gitea:
lookup:
# user used to connect via ssh and to run the gitea service
user: git
# source location of gitea binary (could also use salt://)
binary: https://dl.gitea.io/gitea/1.2.0/gitea-1.2.0-linux-amd64
# hash of the binary to install, set to '' to disable verifying the binary's hash
binary_hash: sha256=5380d7cf6ee34f376e44354d47ee5df51a60740fd20ec4d1e55a53d9136a52b9
# install gitea archive into this directory
install_dir: /opt/gitea
# location of the gitea app.ini config file
conf_dir: /etc/gitea
# home directory of the gitea user
home_dir: /var/lib/gitea/home
# base directory for avatar and session directories and sqlite db file
data_dir: /var/lib/gitea/data
# directory containing gitea logs
logs_dir: /var/log/gitea
# base directory for gitea repositories
repo_root_dir: /var/lib/gitea/repos
config:
# These options generally map to <section>_<option> in the gitea config file
# name that shows on every page title
app_name: 'Gitea: Git with a cup of tea'
run_mode: prod
# force every new repository to be private
repository_force_private: 'false'
server_protocol: http
server_domain: localhost
server_http_addr: '127.0.0.1'
server_http_port: 3000
# disable SSH feature when not available
server_disable_ssh: 'false'
# port number to be exposed in clone URL
server_ssh_port: 22
# disable CDN even in 'prod' mode
server_offline_mode: 'false'
# 'mysql, 'postgres', or 'sqlite3' (default: sqlite3)
db_type: postgresql
# the following are required for 'mysql' and 'postgres'
db_host: localhost:5432
db_name: gitea
db_user: gitea
db_pass: giteadbpass
# 'diable', 'require' or 'verify-full' (only used by 'postgres')
db_ssl_mode: disable
# secret key to keep user data safe (default: automatically generated by
# salt and stored in the 'gitea:security_secret_key' grain)
security_secret_key: '1sNQOM2XTZd0rmj'
# user needs to confirm e-mail for registration
service_register_email_confirm: 'false'
# users can not register their own accounts, only admins can create them
service_disable_registration: 'false'
# user must sign in to view anything
service_require_signin_view: 'false'
# mail notification
service_enable_notify_mail: 'false'
# enable captcha validation for registration
service_enable_captcha: 'false'
# enable to mailer (default: False)
mailer_enabled: True
# the SMTP mail server to use (default: 'localhost:25')
mailer_host: mail.example.com:25
# the from address (default: '"Gitea" <(gitea user)@(host fqdn)>')
mailer_from: '"Gitea" <noreply@mail.example.com>'
# SMTP username
mailer_user: smtpuser
# SMTP password
mailer_passwd: smtppassword
# 'memory', 'file', or 'redis' (default: file)
# also see 'data_sessions_dir'
session_provider: memory
# disable the use of gravatar for user profile pictures
picture_disable_gravatar: 'false'
# enable the use of libravatar
picture_enable_federated_avatar: 'true'
# 'console', 'file', 'conn', 'smtp', or 'database' (default: file)
# also see 'logs_dir'
log_mode: console
# 'Trace', 'Debug', 'Info', 'Warn', 'Error', or 'Critical' (default: Warn)
log_level: Error
# enable internal log rotation of gitea.log file (default: false)
log_file_log_rotate: 'true'
# defaults to '<conf_dir>/app.ini' if not defined
conf_file: /etc/gitea/config.ini
# defaults to '<data_dir>/gitea.db' if not defined
sqlite_db_file: /var/lib/gitea/gitea.sqlite3
# defaults to '<data_dir>/sessions/' if not defined
data_sessions_dir: /tmp/sessions
# defaults to '<data_dir>/avatars/' if not defined
data_avatars_dir: /tmp/avatars
# defaults to '<data_dir>/attachments/' if not defined
data_attachments_dir: /tmp/attachemts