· 7 years ago · Apr 24, 2018, 08:26 PM
1app.ini:
2APP_NAME = Gogs: Go Git Service
3RUN_USER = git
4RUN_MODE = prod
5
6[ui]
7ISSUE_PAGING_NUM = 30
8FEED_MAX_COMMIT_NUM = 10
9
10[database]
11DB_TYPE = mysql
12HOST = 127.0.0.1:3306
13NAME = gogs
14USER = root
15PASSWD = """password"""
16SSL_MODE = disable
17PATH = data/gogs.db
18
19[repository]
20ROOT = /home/git/gogs-repositories
21FORCE_PRIVATE = true
22
23[server]
24PROTOCOL = https
25HTTP_PORT = 8080
26ROOT_URL = https://domain.ddns.net:8080/
27DISABLE_SSH = true
28SSH_PORT = 22
29SSH_DOMAIN = domain.ddns.net
30OFFLINE_MODE = false
31CERT_FILE = /etc/letsencrypt/live/domain.ddns.net/fullchain.pem
32KEY_FILE = /etc/letsencrypt/live/domain.ddns.net/privkey.pem
33
34[mailer]
35ENABLED = false
36
37[service]
38REGISTER_EMAIL_CONFIRM = false
39ENABLE_NOTIFY_MAIL = false
40DISABLE_REGISTRATION = true
41ENABLE_CAPTCHA = true
42REQUIRE_SIGNIN_VIEW = true
43
44[picture]
45DISABLE_GRAVATAR = false
46
47[session]
48PROVIDER = file
49
50[log]
51MODE = file
52LEVEL = Info
53
54[security]
55INSTALL_LOCK = true
56SECRET_KEY = kR8OhzNTaoDF4jg
57
58[git]
59MAX_GIT_DIFF_LINE_CHARACTERS = 1500