2018-01-25 21:20:13 +00:00
|
|
|
; This file lists the default values used by Gitea
|
|
|
|
; Copy required sections to your own app.ini (default is custom/conf/app.ini)
|
|
|
|
; and modify as needed.
|
2018-04-07 08:05:20 +00:00
|
|
|
; See the cheatsheet at https://docs.gitea.io/en-us/config-cheat-sheet/
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
; App name that shows on every page title
|
|
|
|
APP_NAME = Nemo's code
|
|
|
|
RUN_MODE = prod
|
|
|
|
RUN_USER = git
|
|
|
|
|
|
|
|
[repository]
|
|
|
|
ROOT = /data/git/repositories
|
2018-04-07 08:05:20 +00:00
|
|
|
USE_COMPAT_SSH_URI = true
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
[repository.upload]
|
|
|
|
TEMP_PATH = /data/gitea/uploads
|
|
|
|
|
|
|
|
[ui]
|
|
|
|
; Value of `theme-color` meta tag, used by Android >= 5.0
|
|
|
|
; An invalid color like "none" or "disable" will have the default style
|
|
|
|
; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
|
|
|
|
THEME_COLOR_META_TAG = `#192a56`
|
|
|
|
; Max size of files to be displayed (defaults is 8MiB)
|
2018-02-03 07:36:06 +00:00
|
|
|
MAX_DISPLAY_FILE_SIZE = 1000000
|
2018-01-25 21:20:13 +00:00
|
|
|
; Whether show the user email in the Explore Users page
|
|
|
|
SHOW_USER_EMAIL = false
|
|
|
|
|
|
|
|
[ui.admin]
|
|
|
|
; Number of users that are showed in one page
|
|
|
|
USER_PAGING_NUM = 50
|
|
|
|
; Number of repos that are showed in one page
|
|
|
|
REPO_PAGING_NUM = 50
|
|
|
|
; Number of notices that are showed in one page
|
|
|
|
NOTICE_PAGING_NUM = 25
|
|
|
|
; Number of organization that are showed in one page
|
|
|
|
ORG_PAGING_NUM = 50
|
|
|
|
|
|
|
|
[ui.user]
|
|
|
|
; Number of repos that are showed in one page
|
|
|
|
REPO_PAGING_NUM = 15
|
|
|
|
|
|
|
|
[ui.meta]
|
|
|
|
AUTHOR = Nemo
|
|
|
|
DESCRIPTION = Nemo's self-hosted code
|
|
|
|
KEYWORDS = git, captnemo, git.captnemo.in, piratecoders
|
|
|
|
|
|
|
|
[markdown]
|
|
|
|
; Enable hard line break extension
|
|
|
|
ENABLE_HARD_LINE_BREAK = false
|
|
|
|
; List of custom URL-Schemes that are allowed as links when rendering Markdown
|
|
|
|
; for example git,magnet
|
2018-04-07 08:05:20 +00:00
|
|
|
CUSTOM_URL_SCHEMES = git,magnet,steam,irc,slack
|
2018-01-25 21:20:13 +00:00
|
|
|
FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
|
|
|
|
|
|
|
|
; Define allowed algorithms and their minimum key length (use -1 to disable a type)
|
|
|
|
[ssh.minimum_key_sizes]
|
|
|
|
ED25519 = 256
|
|
|
|
ECDSA = 256
|
|
|
|
RSA = 2048
|
|
|
|
DSA = 1024
|
|
|
|
|
|
|
|
[server]
|
|
|
|
APP_DATA_PATH = /data/gitea
|
|
|
|
SSH_DOMAIN = git.captnemo.in
|
|
|
|
HTTP_PORT = 3000
|
|
|
|
ROOT_URL = https://git.captnemo.in/
|
|
|
|
DISABLE_SSH = false
|
|
|
|
SSH_PORT = 22
|
|
|
|
DOMAIN = git.captnemo.in
|
|
|
|
LFS_START_SERVER = true
|
|
|
|
LFS_CONTENT_PATH = /data/gitea/lfs
|
2018-04-07 08:05:20 +00:00
|
|
|
LFS_JWT_SECRET = ${lfs-jwt-secret}
|
2018-01-25 21:20:13 +00:00
|
|
|
OFFLINE_MODE = true
|
2018-04-07 08:05:20 +00:00
|
|
|
LANDING_PAGE = explore
|
|
|
|
MINIMUM_KEY_SIZE_CHECK = true
|
|
|
|
|
|
|
|
# Uses the Mozilla Modern SSH Config params
|
|
|
|
SSH_SERVER_CIPHERS = chacha20-poly1305@openssh.com, aes256-gcm@openssh.com, aes128-gcm@openssh.com, aes256-ctr, aes192-ctr, aes128-ctr
|
|
|
|
SSH_SERVER_KEY_EXCHANGES = curve25519-sha256@libssh.org, ecdh-sha2-nistp521, ecdh-sha2-nistp384, ecdh-sha2-nistp256, diffie-hellman-group-exchange-sha256
|
|
|
|
SSH_SERVER_MACS = hmac-sha2-512-etm@openssh.com, hmac-sha2-256-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-512, hmac-sha2-256, umac-128@openssh.com
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
[database]
|
|
|
|
|
|
|
|
; TODO
|
|
|
|
; ; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice
|
2018-04-07 12:09:23 +00:00
|
|
|
DB_TYPE = sqlite3
|
2018-04-08 19:54:44 +00:00
|
|
|
HOST = mariadb:3306
|
|
|
|
NAME = gitea
|
|
|
|
USER = gitea
|
2018-06-04 08:09:55 +00:00
|
|
|
; PASSWD = "mysql-password"
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; For "postgres" only, either "disable", "require" or "verify-full"
|
|
|
|
; SSL_MODE = disable
|
|
|
|
; ; For "sqlite3" and "tidb", use absolute path when you start as service
|
2018-04-08 19:54:44 +00:00
|
|
|
PATH = /data/gitea/gitea.db
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; For "sqlite3" only. Query timeout
|
2018-04-08 19:54:44 +00:00
|
|
|
SQLITE_TIMEOUT = 500
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; For iterate buffer, default is 50
|
|
|
|
; ITERATE_BUFFER_SIZE = 50
|
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER_CONFIG = /data/gitea/sessions
|
|
|
|
PROVIDER = file
|
|
|
|
|
|
|
|
[picture]
|
|
|
|
AVATAR_UPLOAD_PATH = /data/gitea/avatars
|
|
|
|
DISABLE_GRAVATAR = true
|
|
|
|
ENABLE_FEDERATED_AVATAR = false
|
|
|
|
|
|
|
|
[indexer]
|
|
|
|
ISSUE_INDEXER_PATH = indexers/issues.bleve
|
|
|
|
; repo indexer by default disabled, since it uses a lot of disk space
|
2018-04-07 08:05:20 +00:00
|
|
|
REPO_INDEXER_ENABLED = true
|
2018-01-25 21:20:13 +00:00
|
|
|
REPO_INDEXER_PATH = indexers/repos.bleve
|
|
|
|
UPDATE_BUFFER_LEN = 20
|
|
|
|
MAX_FILE_SIZE = 1048576
|
|
|
|
|
|
|
|
[admin]
|
|
|
|
; Disable regular (non-admin) users to create organizations
|
|
|
|
DISABLE_REGULAR_ORG_CREATION = false
|
|
|
|
|
|
|
|
[security]
|
|
|
|
INSTALL_LOCK = true
|
|
|
|
LOGIN_REMEMBER_DAYS = 30
|
|
|
|
MIN_PASSWORD_LENGTH = 10
|
|
|
|
IMPORT_LOCAL_PATHS = false
|
|
|
|
DISABLE_GIT_HOOKS = true
|
|
|
|
SECRET_KEY = ${secret_key}
|
|
|
|
INTERNAL_TOKEN = ${internal_token}
|
|
|
|
|
2018-02-03 07:36:06 +00:00
|
|
|
[service]
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; More detail: https://github.com/gogits/gogs/issues/165
|
|
|
|
; ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
|
|
|
; ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
|
2018-02-03 07:36:06 +00:00
|
|
|
|
|
|
|
; ; Time limit to confirm account/email registration
|
|
|
|
ACTIVE_CODE_LIVE_MINUTES = 15
|
|
|
|
; ; Time limit to confirm forgot password reset process
|
|
|
|
RESET_PASSWD_CODE_LIVE_MINUTES = 30
|
|
|
|
REGISTER_EMAIL_CONFIRM = true
|
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = false
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Enable captcha validation for registration
|
2018-02-03 07:36:06 +00:00
|
|
|
ENABLE_CAPTCHA = true
|
|
|
|
; ; User must sign in to view anything.
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Default value for KeepEmailPrivate
|
|
|
|
; ; New user will get the value of this setting copied into their profile
|
2018-02-03 07:36:06 +00:00
|
|
|
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Default value for AllowCreateOrganization
|
|
|
|
; ; New user will have rights set to create organizations depending on this setting
|
2018-02-03 07:36:06 +00:00
|
|
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
|
|
|
DEFAULT_ENABLE_TIMETRACKING = false
|
|
|
|
DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Default value for the domain part of the user's email address in the git log
|
|
|
|
; ; if he has set KeepEmailPrivate true. The user's email replaced with a
|
|
|
|
; ; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
|
|
|
|
NO_REPLY_ADDRESS = noreply.example.org
|
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
|
|
|
|
|
|
|
|
[mailer]
|
2018-02-03 07:36:06 +00:00
|
|
|
ENABLED = true
|
|
|
|
FROM = git@captnemo.in
|
|
|
|
USER = git@captnemo.in
|
|
|
|
PASSWD = ${smtp_password}
|
2018-04-07 08:05:20 +00:00
|
|
|
HOST = smtp.migadu.com:587
|
2018-02-03 07:36:06 +00:00
|
|
|
SEND_AS_PLAIN_TEXT = true
|
2018-01-25 21:20:13 +00:00
|
|
|
|
2018-04-07 08:05:20 +00:00
|
|
|
[cache]
|
|
|
|
ADAPTER = redis
|
|
|
|
INTERVAL = 60
|
|
|
|
HOST = "network=tcp,addr=gitea-redis:6379,db=0,pool_size=100,idle_timeout=180"
|
|
|
|
ITEM_TTL = 16h
|
2018-01-25 21:20:13 +00:00
|
|
|
|
2018-02-03 07:36:06 +00:00
|
|
|
[session]
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Either "memory", "file", or "redis", default is "memory"
|
2018-04-07 08:05:20 +00:00
|
|
|
PROVIDER = redis
|
|
|
|
PROVIDER_CONFIG = "network=tcp,addr=gitea-redis:6379,db=1,pool_size=100,idle_timeout=180"
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Session cookie name
|
2018-02-03 07:36:06 +00:00
|
|
|
COOKIE_NAME = i_like_gitea
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; If you use session in https only, default is false
|
2018-02-03 07:36:06 +00:00
|
|
|
COOKIE_SECURE = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Enable set cookie, default is true
|
2018-02-03 07:36:06 +00:00
|
|
|
ENABLE_SET_COOKIE = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Session GC time interval in seconds, default is 86400 (1 day)
|
|
|
|
; GC_INTERVAL_TIME = 86400
|
|
|
|
; ; Session life time in seconds, default is 86400 (1 day)
|
2018-02-03 07:36:06 +00:00
|
|
|
SESSION_LIFE_TIME = 2592000
|
2018-01-25 21:20:13 +00:00
|
|
|
|
2018-02-09 20:56:31 +00:00
|
|
|
[attachment]
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Whether attachments are enabled. Defaults to `true`
|
2018-02-09 20:56:31 +00:00
|
|
|
ENABLE = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Path for attachments. Defaults to `data/attachments`
|
2018-02-09 20:56:31 +00:00
|
|
|
PATH = data/attachments
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; One or more allowed types, e.g. image/jpeg|image/png
|
2018-02-03 07:36:06 +00:00
|
|
|
ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip|application/pdf|text/csv
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Max size of each file. Defaults to 32MB
|
|
|
|
; MAX_SIZE = 4
|
|
|
|
; ; Max number of files per upload. Defaults to 10
|
|
|
|
; MAX_FILES = 5
|
|
|
|
|
2018-02-03 07:36:06 +00:00
|
|
|
LEVEL = Info
|
2018-01-25 21:20:13 +00:00
|
|
|
|
2018-02-03 07:36:06 +00:00
|
|
|
[cron]
|
|
|
|
; Enable running cron tasks periodically.
|
|
|
|
ENABLED = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Run cron tasks when Gitea starts.
|
2018-02-03 07:36:06 +00:00
|
|
|
RUN_AT_START = false
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
; ; Update mirrors
|
2018-02-03 07:36:06 +00:00
|
|
|
[cron.update_mirrors]
|
|
|
|
SCHEDULE = @every 3h
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
[api]
|
|
|
|
; Max number of items will response in a page
|
|
|
|
MAX_RESPONSE_ITEMS = 100
|
|
|
|
|
|
|
|
[other]
|
|
|
|
SHOW_FOOTER_BRANDING = false
|
|
|
|
; Show version information about Gitea and Go in the footer
|
2018-02-03 07:36:06 +00:00
|
|
|
SHOW_FOOTER_VERSION = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; Show time of template execution in the footer
|
|
|
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
|
|
|
|
|
|
|
[openid]
|
|
|
|
ENABLE_OPENID_SIGNIN = true
|
2018-02-09 20:56:31 +00:00
|
|
|
ENABLE_OPENID_SIGNUP = true
|