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/
|
2023-06-01 08:30:49 +00:00
|
|
|
; A sample file with all configuration documented is at https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini
|
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
|
2021-02-02 13:01:56 +00:00
|
|
|
USE_COMPAT_SSH_URI = false
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
[repository.upload]
|
|
|
|
TEMP_PATH = /data/gitea/uploads
|
|
|
|
|
|
|
|
[ui]
|
2023-06-01 08:30:49 +00:00
|
|
|
|
|
|
|
;; Number of issues that are displayed on one page
|
|
|
|
ISSUE_PAGING_NUM = 20
|
|
|
|
|
2018-01-25 21:20:13 +00:00
|
|
|
; 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
|
|
|
|
|
2023-06-01 08:30:49 +00:00
|
|
|
;; Whether to only show relevant repos on the explore page when no keyword is specified and default sorting is used.
|
|
|
|
;; A repo is considered irrelevant if it's a fork or if it has no metadata (no description, no icon, no topic).
|
|
|
|
|
|
|
|
ONLY_SHOW_RELEVANT_REPOS = true
|
|
|
|
|
2018-01-25 21:20:13 +00:00
|
|
|
[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
|
|
|
|
|
2023-06-01 08:30:49 +00:00
|
|
|
;; Enables math inline and block detection
|
|
|
|
ENABLE_MATH = true
|
|
|
|
|
2018-01-25 21:20:13 +00:00
|
|
|
; 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
|
|
|
|
HTTP_PORT = 3000
|
|
|
|
ROOT_URL = https://git.captnemo.in/
|
2021-02-02 13:01:56 +00:00
|
|
|
DISABLE_SSH = true
|
2018-01-25 21:20:13 +00:00
|
|
|
DOMAIN = git.captnemo.in
|
2019-05-12 03:31:35 +00:00
|
|
|
LFS_START_SERVER = true
|
2018-01-25 21:20:13 +00:00
|
|
|
LFS_CONTENT_PATH = /data/gitea/lfs
|
2019-05-12 03:31:35 +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
|
|
|
|
2019-05-12 03:31:35 +00:00
|
|
|
DISABLE_ROUTER_LOG = true
|
|
|
|
ENABLE_GZIP = true
|
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
|
2018-12-14 11:43:36 +00:00
|
|
|
; Show the database generated SQL
|
|
|
|
LOG_SQL = false
|
2023-06-01 08:30:49 +00:00
|
|
|
SQLITE_JOURNAL_MODE = WAL
|
2018-01-25 21:20:13 +00:00
|
|
|
|
|
|
|
[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
|
2019-05-12 03:31:35 +00:00
|
|
|
IMPORT_LOCAL_PATHS = true
|
2018-01-25 21:20:13 +00:00
|
|
|
DISABLE_GIT_HOOKS = true
|
2019-06-02 10:11:06 +00:00
|
|
|
SECRET_KEY = "${secret_key}"
|
|
|
|
INTERNAL_TOKEN = "${internal_token}"
|
2018-01-25 21:20:13 +00:00
|
|
|
|
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
|
2021-10-15 12:54:13 +00:00
|
|
|
DISABLE_REGISTRATION = true
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Enable captcha validation for registration
|
2018-02-03 07:36:06 +00:00
|
|
|
ENABLE_CAPTCHA = true
|
2020-10-10 13:32:50 +00:00
|
|
|
REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA = true
|
2019-05-12 03:31:35 +00:00
|
|
|
CAPTCHA_TYPE = image
|
2018-02-03 07:36:06 +00:00
|
|
|
; ; 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
|
2021-10-15 12:54:13 +00:00
|
|
|
DEFAULT_KEEP_EMAIL_PRIVATE = true
|
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}
|
2023-06-01 08:30:49 +00:00
|
|
|
PROTOCOL = smtps
|
|
|
|
SMTP_ADDR = smtp.migadu.com
|
|
|
|
SMTP_PORT = 465
|
2018-02-03 07:36:06 +00:00
|
|
|
SEND_AS_PLAIN_TEXT = true
|
2019-06-02 10:13:50 +00:00
|
|
|
SUBJECT_PREFIX = "[git.captnemo.in] "
|
2018-01-25 21:20:13 +00:00
|
|
|
|
2018-04-07 08:05:20 +00:00
|
|
|
[cache]
|
|
|
|
ADAPTER = redis
|
|
|
|
HOST = "network=tcp,addr=gitea-redis:6379,db=0,pool_size=100,idle_timeout=180"
|
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
|
2021-04-14 06:38:21 +00:00
|
|
|
; Provider config options
|
|
|
|
; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
|
2018-04-07 08:05:20 +00:00
|
|
|
PROVIDER_CONFIG = "network=tcp,addr=gitea-redis:6379,db=1,pool_size=100,idle_timeout=180"
|
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
|
2021-04-14 06:38:21 +00:00
|
|
|
; SameSite settings. Either "none", "lax", or "strict"
|
|
|
|
SAME_SITE = strict
|
2019-05-12 03:31:35 +00:00
|
|
|
|
2023-06-01 08:30:49 +00:00
|
|
|
[migrations]
|
|
|
|
ALLOWED_DOMAINS = github.com
|
|
|
|
ALLOW_LOCALNETWORKS = false
|
|
|
|
|
|
|
|
|
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
|
|
|
; ; 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
|
2019-05-12 03:31:35 +00:00
|
|
|
MAX_SIZE = 20
|
2018-01-25 21:20:13 +00:00
|
|
|
; ; Max number of files per upload. Defaults to 10
|
2019-05-12 03:31:35 +00:00
|
|
|
MAX_FILES = 10
|
2018-01-25 21:20:13 +00:00
|
|
|
|
2018-12-14 11:43:36 +00:00
|
|
|
[log]
|
|
|
|
; Either "console", "file", "conn", "smtp" or "database", default is "console"
|
|
|
|
; Use comma to separate multiple modes, e.g. "console, file"
|
|
|
|
MODE = console
|
|
|
|
; Buffer length of the channel, keep it as it is if you don't know what it is.
|
|
|
|
BUFFER_LEN = 10000
|
|
|
|
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
|
2021-04-14 06:38:21 +00:00
|
|
|
LEVEL = Warn
|
2019-05-12 03:31:35 +00:00
|
|
|
REDIRECT_MACARON_LOG = true
|
|
|
|
ROUTER_LOG_LEVEL = Critical
|
|
|
|
ENABLE_ACCESS_LOG = true
|
|
|
|
ENABLE_XORM_LOG = false
|
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
|
|
|
|
2019-05-12 03:31:35 +00:00
|
|
|
[cron.archive_cleanup]
|
|
|
|
RUN_AT_START = true
|
2022-02-02 13:33:28 +00:00
|
|
|
SCHEDULE = @midnight
|
2019-05-12 03:31:35 +00:00
|
|
|
; Archives created more than OLDER_THAN ago are subject to deletion
|
|
|
|
OLDER_THAN = 24h
|
|
|
|
|
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
|
|
|
|
2019-05-12 03:31:35 +00:00
|
|
|
|
|
|
|
; Repository health check
|
|
|
|
[cron.repo_health_check]
|
2022-02-02 13:33:28 +00:00
|
|
|
SCHEDULE = @midnight
|
2019-05-12 03:31:35 +00:00
|
|
|
TIMEOUT = 60s
|
|
|
|
; Arguments for command 'git fsck', e.g. "--unreachable --tags"
|
|
|
|
; see more on http://git-scm.com/docs/git-fsck
|
|
|
|
ARGS =
|
|
|
|
|
|
|
|
; Check repository statistics
|
|
|
|
[cron.check_repo_stats]
|
|
|
|
RUN_AT_START = true
|
2022-02-02 13:33:28 +00:00
|
|
|
SCHEDULE = @midnight
|
2019-05-12 03:31:35 +00:00
|
|
|
|
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
|
2021-10-15 12:54:13 +00:00
|
|
|
ENABLE_OPENID_SIGNUP = false
|
2018-12-14 11:43:36 +00:00
|
|
|
|
|
|
|
[metrics]
|
|
|
|
; Enables metrics endpoint. True or false; default is false.
|
2019-01-24 20:38:00 +00:00
|
|
|
ENABLED = true
|
2019-06-02 10:11:06 +00:00
|
|
|
|
|
|
|
[oauth2]
|
|
|
|
ENABLE = false
|
|
|
|
; this is same as JWT secret above
|
|
|
|
JWT_SECRET = "${oauth2-jwt-secret}"
|
2022-02-02 13:33:28 +00:00
|
|
|
|
|
|
|
[federation]
|
|
|
|
ENABLED=false
|
2023-06-01 08:30:49 +00:00
|
|
|
;; Enable/Disable user statistics for nodeinfo if federation is enabled
|
|
|
|
;SHARE_USER_STATISTICS = true
|
|
|
|
;;
|
|
|
|
;; Maximum federation request and response size (MB)
|
|
|
|
;MAX_SIZE = 4
|
|
|
|
;;
|
|
|
|
;; WARNING: Changing the settings below can break federation.
|
|
|
|
;;
|
|
|
|
;; HTTP signature algorithms
|
|
|
|
;ALGORITHMS = rsa-sha256, rsa-sha512, ed25519
|
|
|
|
;;
|
|
|
|
;; HTTP signature digest algorithm
|
|
|
|
;DIGEST_ALGORITHM = SHA-256
|
|
|
|
;;
|
|
|
|
;; GET headers for federation requests
|
|
|
|
;GET_HEADERS = (request-target), Date
|
|
|
|
;;
|
|
|
|
;; POST headers for federation requests
|
|
|
|
;POST_HEADERS = (request-target), Date, Digest
|
|
|
|
|
|
|
|
|
|
|
|
[packages]
|
|
|
|
;; Enable/Disable package registry capabilities
|
|
|
|
ENABLED = true
|