; 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. ; See the cheatsheet at https://docs.gitea.io/en-us/config-cheat-sheet/ ; A sample file with all configuration documented is at https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample ; App name that shows on every page title APP_NAME = Nemo's code RUN_MODE = prod RUN_USER = git [repository] ROOT = /data/git/repositories USE_COMPAT_SSH_URI = true [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) MAX_DISPLAY_FILE_SIZE = 1000000 ; 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 CUSTOM_URL_SCHEMES = git,magnet,steam,irc,slack 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 = code.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 LFS_JWT_SECRET = "${lfs-jwt-secret}" OFFLINE_MODE = true 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 DISABLE_ROUTER_LOG = true ENABLE_GZIP = true [database] ; TODO ; ; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice DB_TYPE = sqlite3 HOST = mariadb:3306 NAME = gitea USER = gitea ; PASSWD = "mysql-password" ; ; For "postgres" only, either "disable", "require" or "verify-full" ; SSL_MODE = disable ; ; For "sqlite3" and "tidb", use absolute path when you start as service PATH = /data/gitea/gitea.db ; ; For "sqlite3" only. Query timeout SQLITE_TIMEOUT = 500 ; ; For iterate buffer, default is 50 ; ITERATE_BUFFER_SIZE = 50 ; Show the database generated SQL LOG_SQL = false [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 REPO_INDEXER_ENABLED = true 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 = true DISABLE_GIT_HOOKS = true SECRET_KEY = "${secret_key}" INTERNAL_TOKEN = "${internal_token}" [service] ; ; More detail: https://github.com/gogits/gogs/issues/165 ; ENABLE_REVERSE_PROXY_AUTHENTICATION = false ; ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; ; 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 ; ; Enable captcha validation for registration ENABLE_CAPTCHA = true REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA = true CAPTCHA_TYPE = image ; ; User must sign in to view anything. REQUIRE_SIGNIN_VIEW = false ; ; Default value for KeepEmailPrivate ; ; New user will get the value of this setting copied into their profile DEFAULT_KEEP_EMAIL_PRIVATE = false ; ; Default value for AllowCreateOrganization ; ; New user will have rights set to create organizations depending on this setting DEFAULT_ALLOW_CREATE_ORGANIZATION = true DEFAULT_ENABLE_TIMETRACKING = false DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true ; ; 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] ENABLED = true FROM = git@captnemo.in USER = git@captnemo.in PASSWD = ${smtp_password} HOST = smtp.migadu.com:587 SEND_AS_PLAIN_TEXT = true SUBJECT_PREFIX = "[git.captnemo.in] " [cache] ADAPTER = redis INTERVAL = 60 HOST = "network=tcp,addr=gitea-redis:6379,db=0,pool_size=100,idle_timeout=180" ITEM_TTL = 16h [session] ; ; Either "memory", "file", or "redis", default is "memory" PROVIDER = redis PROVIDER_CONFIG = "network=tcp,addr=gitea-redis:6379,db=1,pool_size=100,idle_timeout=180" ; ; Session cookie name COOKIE_NAME = i_like_gitea ; ; If you use session in https only, default is false COOKIE_SECURE = true ; ; Enable set cookie, default is true ENABLE_SET_COOKIE = true ; ; 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) SESSION_LIFE_TIME = 2592000 [picture] ENABLE_FEDERATED_AVATAR = true [attachment] ; ; Whether attachments are enabled. Defaults to `true` ENABLE = true ; ; Path for attachments. Defaults to `data/attachments` PATH = data/attachments ; ; One or more allowed types, e.g. image/jpeg|image/png ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip|application/pdf|text/csv ; ; Max size of each file. Defaults to 32MB MAX_SIZE = 20 ; ; Max number of files per upload. Defaults to 10 MAX_FILES = 10 [log] ROOT_PATH = ; 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" LEVEL = Critical REDIRECT_MACARON_LOG = true ROUTER_LOG_LEVEL = Critical ENABLE_ACCESS_LOG = true ENABLE_XORM_LOG = false [cron] ; Enable running cron tasks periodically. ENABLED = true ; ; Run cron tasks when Gitea starts. RUN_AT_START = false [cron.archive_cleanup] RUN_AT_START = true SCHEDULE = @every 24h ; Archives created more than OLDER_THAN ago are subject to deletion OLDER_THAN = 24h ; ; Update mirrors [cron.update_mirrors] SCHEDULE = @every 3h ; Repository health check [cron.repo_health_check] SCHEDULE = @every 24h 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 SCHEDULE = @every 24h [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 SHOW_FOOTER_VERSION = true ; Show time of template execution in the footer SHOW_FOOTER_TEMPLATE_LOAD_TIME = false [openid] ENABLE_OPENID_SIGNIN = true ENABLE_OPENID_SIGNUP = true [metrics] ; Enables metrics endpoint. True or false; default is false. ENABLED = true ; If you want to add authorization, specify a token here ; TODO TOKEN = [git] ; Disables highlight of added and removed changes DISABLE_DIFF_HIGHLIGHT = false ; Max number of lines allowed in a single file in diff view MAX_GIT_DIFF_LINES = 1000 ; Max number of allowed characters in a line in diff view MAX_GIT_DIFF_LINE_CHARACTERS = 5000 ; Max number of files shown in diff view MAX_GIT_DIFF_FILES = 100 ; Arguments for command 'git gc', e.g. "--aggressive --auto" ; see more on http://git-scm.com/docs/git-gc/ GC_ARGS = ; Operation timeout in seconds [git.timeout] DEFAULT = 360 MIGRATE = 600 MIRROR = 300 CLONE = 300 PULL = 300 GC = 60 [oauth2] ENABLE = false ; this is same as JWT secret above JWT_SECRET = "${oauth2-jwt-secret}"