code.gitea.io/gitea@v1.22.3/custom/conf/app.example.ini (about) 1 ; This file lists the default values used by Gitea 2 ;; Copy required sections to your own app.ini (default is custom/conf/app.ini) 3 ;; and modify as needed. 4 ;; Do not copy the whole file as-is, as it contains some invalid sections for illustrative purposes. 5 ;; If you don't know what a setting is you should not set it. 6 ;; 7 ;; see https://docs.gitea.com/administration/config-cheat-sheet for additional documentation. 8 9 10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 11 ;; Default Configuration (non-`app.ini` configuration) 12 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 13 ;; 14 ;; These values are environment-dependent but form the basis of a lot of values. They will be 15 ;; reported as part of the default configuration when running `gitea help` or on start-up. The order they are emitted there is slightly different but we will list them here in the order they are set-up. 16 ;; 17 ;; - _`AppPath`_: This is the absolute path of the running gitea binary. 18 ;; - _`AppWorkPath`_: This refers to "working path" of the `gitea` binary. It is determined by using the first set thing in the following hierarchy: 19 ;; - The "WORK_PATH" option in "app.ini" file 20 ;; - The `--work-path` flag passed to the binary 21 ;; - The environment variable `$GITEA_WORK_DIR` 22 ;; - A built-in value set at build time (see building from source) 23 ;; - Otherwise it defaults to the directory of the _`AppPath`_ 24 ;; - If any of the above are relative paths then they are made absolute against the directory of the _`AppPath`_ 25 ;; - _`CustomPath`_: This is the base directory for custom templates and other options. It is determined by using the first set thing in the following hierarchy: 26 ;; - The `--custom-path` flag passed to the binary 27 ;; - The environment variable `$GITEA_CUSTOM` 28 ;; - A built-in value set at build time (see building from source) 29 ;; - Otherwise it defaults to _`AppWorkPath`_`/custom` 30 ;; - If any of the above are relative paths then they are made absolute against the directory of the _`AppWorkPath`_ 31 ;; - _`CustomConf`_: This is the path to the `app.ini` file. 32 ;; - The `--config` flag passed to the binary 33 ;; - A built-in value set at build time (see building from source) 34 ;; - Otherwise it defaults to _`CustomPath`_`/conf/app.ini` 35 ;; - If any of the above are relative paths then they are made absolute against the directory of the _`CustomPath`_ 36 ;; 37 ;; In addition there is _`StaticRootPath`_ which can be set as a built-in at build time, but will otherwise default to _`AppWorkPath`_ 38 39 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 40 ;; General Settings 41 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 42 ;; 43 ;; App name that shows in every page title 44 APP_NAME = ; Gitea: Git with a cup of tea 45 ;; 46 ;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally 47 RUN_USER = ; git 48 ;; 49 ;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod" 50 ;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use. 51 ;RUN_MODE = prod 52 ;; 53 ;; The working directory, see the comment of AppWorkPath above 54 ;WORK_PATH = 55 56 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 57 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 58 [server] 59 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 60 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 61 ;; 62 ;; The protocol the server listens on. One of 'http', 'https', 'http+unix', 'fcgi' or 'fcgi+unix'. Defaults to 'http' 63 ;; Note: Value must be lowercase. 64 ;PROTOCOL = http 65 ;; 66 ;; Expect PROXY protocol headers on connections 67 ;USE_PROXY_PROTOCOL = false 68 ;; 69 ;; Use PROXY protocol in TLS Bridging mode 70 ;PROXY_PROTOCOL_TLS_BRIDGING = false 71 ;; 72 ; Timeout to wait for PROXY protocol header (set to 0 to have no timeout) 73 ;PROXY_PROTOCOL_HEADER_TIMEOUT=5s 74 ;; 75 ; Accept PROXY protocol headers with UNKNOWN type 76 ;PROXY_PROTOCOL_ACCEPT_UNKNOWN=false 77 ;; 78 ;; Set the domain for the server 79 ;DOMAIN = localhost 80 ;; 81 ;; Overwrite the automatically generated public URL. Necessary for proxies and docker. 82 ;ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ 83 ;; 84 ;; when STATIC_URL_PREFIX is empty it will follow ROOT_URL 85 ;STATIC_URL_PREFIX = 86 ;; 87 ;; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket. 88 ;; If PROTOCOL is set to `http+unix` or `fcgi+unix`, this should be the name of the Unix socket file to use. 89 ;; Relative paths will be made absolute against the _`AppWorkPath`_. 90 ;HTTP_ADDR = 0.0.0.0 91 ;; 92 ;; The port to listen on. Leave empty when using a unix socket. 93 ;HTTP_PORT = 3000 94 ;; 95 ;; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server 96 ;; will be started on PORT_TO_REDIRECT and it will redirect plain, non-secure http requests to the main 97 ;; ROOT_URL. Defaults are false for REDIRECT_OTHER_PORT and 80 for 98 ;; PORT_TO_REDIRECT. 99 ;REDIRECT_OTHER_PORT = false 100 ;PORT_TO_REDIRECT = 80 101 ;; 102 ;; expect PROXY protocol header on connections to https redirector. 103 ;REDIRECTOR_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s 104 ;; Minimum and maximum supported TLS versions 105 ;SSL_MIN_VERSION=TLSv1.2 106 ;SSL_MAX_VERSION= 107 ;; 108 ;; SSL Curve Preferences 109 ;SSL_CURVE_PREFERENCES=X25519,P256 110 ;; 111 ;; SSL Cipher Suites 112 ;SSL_CIPHER_SUITES=; Will default to "ecdhe_ecdsa_with_aes_256_gcm_sha384,ecdhe_rsa_with_aes_256_gcm_sha384,ecdhe_ecdsa_with_aes_128_gcm_sha256,ecdhe_rsa_with_aes_128_gcm_sha256,ecdhe_ecdsa_with_chacha20_poly1305,ecdhe_rsa_with_chacha20_poly1305" if aes is supported by hardware, otherwise chacha will be first. 113 ;; 114 ;; Timeout for any write to the connection. (Set to -1 to disable all timeouts.) 115 ;PER_WRITE_TIMEOUT = 30s 116 ;; 117 ;; Timeout per Kb written to connections. 118 ;PER_WRITE_PER_KB_TIMEOUT = 30s 119 ;; 120 ;; Permission for unix socket 121 ;UNIX_SOCKET_PERMISSION = 666 122 ;; 123 ;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. In 124 ;; most cases you do not need to change the default value. Alter it only if 125 ;; your SSH server node is not the same as HTTP node. For different protocol, the default 126 ;; values are different. If `PROTOCOL` is `http+unix`, the default value is `http://unix/`. 127 ;; If `PROTOCOL` is `fcgi` or `fcgi+unix`, the default value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`. 128 ;; If listen on `0.0.0.0`, the default value is `%(PROTOCOL)s://localhost:%(HTTP_PORT)s/`, Otherwise the default 129 ;; value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`. 130 ;LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ 131 ;; 132 ;; When making local connections pass the PROXY protocol header. 133 ;LOCAL_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s 134 ;; 135 ;; Disable SSH feature when not available 136 ;DISABLE_SSH = false 137 ;; 138 ;; Whether to use the builtin SSH server or not. 139 ;START_SSH_SERVER = false 140 ;; 141 ;; Expect PROXY protocol header on connections to the built-in SSH server 142 ;SSH_SERVER_USE_PROXY_PROTOCOL = false 143 ;; 144 ;; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER. 145 ;BUILTIN_SSH_SERVER_USER = %(RUN_USER)s 146 ;; 147 ;; Domain name to be exposed in clone URL 148 ;SSH_DOMAIN = %(DOMAIN)s 149 ;; 150 ;; SSH username displayed in clone URLs. 151 ;SSH_USER = %(BUILTIN_SSH_SERVER_USER)s 152 ;; 153 ;; The network interface the builtin SSH server should listen on 154 ;SSH_LISTEN_HOST = 155 ;; 156 ;; Port number to be exposed in clone URL 157 ;SSH_PORT = 22 158 ;; 159 ;; The port number the builtin SSH server should listen on 160 ;SSH_LISTEN_PORT = %(SSH_PORT)s 161 ;; 162 ;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. 163 ;SSH_ROOT_PATH = 164 ;; 165 ;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server 166 ;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off. 167 ;SSH_CREATE_AUTHORIZED_KEYS_FILE = true 168 ;; 169 ;; Gitea will create a authorized_principals file by default when it is not using the internal ssh server 170 ;; If you intend to use the AuthorizedPrincipalsCommand functionality then you should turn this off. 171 ;SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true 172 ;; 173 ;; For the built-in SSH server, choose the ciphers to support for SSH connections, 174 ;; for system SSH this setting has no effect 175 ;SSH_SERVER_CIPHERS = chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com 176 ;; 177 ;; For the built-in SSH server, choose the key exchange algorithms to support for SSH connections, 178 ;; for system SSH this setting has no effect 179 ;SSH_SERVER_KEY_EXCHANGES = curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1 180 ;; 181 ;; For the built-in SSH server, choose the MACs to support for SSH connections, 182 ;; for system SSH this setting has no effect 183 ;SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1 184 ;; 185 ;; For the built-in SSH server, choose the keypair to offer as the host key 186 ;; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub 187 ;; relative paths are made absolute relative to the %(APP_DATA_PATH)s 188 ;SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa 189 ;; 190 ;; Directory to create temporary files in when testing public keys using ssh-keygen, 191 ;; default is the system temporary directory. 192 ;SSH_KEY_TEST_PATH = 193 ;; 194 ;; Use `ssh-keygen` to parse public SSH keys. The value is passed to the shell. By default, Gitea does the parsing itself. 195 ;SSH_KEYGEN_PATH = 196 ;; 197 ;; Enable SSH Authorized Key Backup when rewriting all keys, default is false 198 ;SSH_AUTHORIZED_KEYS_BACKUP = false 199 ;; 200 ;; Determines which principals to allow 201 ;; - empty: if SSH_TRUSTED_USER_CA_KEYS is empty this will default to off, otherwise will default to email, username. 202 ;; - off: Do not allow authorized principals 203 ;; - email: the principal must match the user's email 204 ;; - username: the principal must match the user's username 205 ;; - anything: there will be no checking on the content of the principal 206 ;SSH_AUTHORIZED_PRINCIPALS_ALLOW = email, username 207 ;; 208 ;; Enable SSH Authorized Principals Backup when rewriting all keys, default is true 209 ;SSH_AUTHORIZED_PRINCIPALS_BACKUP = true 210 ;; 211 ;; Specifies the public keys of certificate authorities that are trusted to sign user certificates for authentication. 212 ;; Multiple keys should be comma separated. 213 ;; E.g."ssh-<algorithm> <key>". or "ssh-<algorithm> <key1>, ssh-<algorithm> <key2>". 214 ;; For more information see "TrustedUserCAKeys" in the sshd config manpages. 215 ;SSH_TRUSTED_USER_CA_KEYS = 216 ;; Absolute path of the `TrustedUserCaKeys` file gitea will manage. 217 ;; Default this `RUN_USER`/.ssh/gitea-trusted-user-ca-keys.pem 218 ;; If you're running your own ssh server and you want to use the gitea managed file you'll also need to modify your 219 ;; sshd_config to point to this file. The official docker image will automatically work without further configuration. 220 ;SSH_TRUSTED_USER_CA_KEYS_FILENAME = 221 ;; 222 ;; Enable exposure of SSH clone URL to anonymous visitors, default is false 223 ;SSH_EXPOSE_ANONYMOUS = false 224 ;; 225 ;; Timeout for any write to ssh connections. (Set to -1 to disable all timeouts.) 226 ;; Will default to the PER_WRITE_TIMEOUT. 227 ;SSH_PER_WRITE_TIMEOUT = 30s 228 ;; 229 ;; Timeout per Kb written to ssh connections. 230 ;; Will default to the PER_WRITE_PER_KB_TIMEOUT. 231 ;SSH_PER_WRITE_PER_KB_TIMEOUT = 30s 232 ;; 233 ;; Indicate whether to check minimum key size with corresponding type 234 ;MINIMUM_KEY_SIZE_CHECK = false 235 ;; 236 ;; Disable CDN even in "prod" mode 237 ;OFFLINE_MODE = true 238 ;; 239 ;; TLS Settings: Either ACME or manual 240 ;; (Other common TLS configuration are found before) 241 ;ENABLE_ACME = false 242 ;; 243 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 244 ;; 245 ;; ACME automatic TLS settings 246 ;; 247 ;; ACME directory URL (e.g. LetsEncrypt's staging/testing URL: https://acme-staging-v02.api.letsencrypt.org/directory) 248 ;; Leave empty to default to LetsEncrypt's (production) URL 249 ;ACME_URL = 250 ;; 251 ;; Explicitly accept the ACME's TOS. The specific TOS cannot be retrieved at the moment. 252 ;ACME_ACCEPTTOS = false 253 ;; 254 ;; If the ACME CA is not in your system's CA trust chain, it can be manually added here 255 ;ACME_CA_ROOT = 256 ;; 257 ;; Email used for the ACME registration service 258 ;; Can be left blank to initialize at first run and use the cached value 259 ;ACME_EMAIL = 260 ;; 261 ;; ACME live directory (not to be confused with ACME directory URL: ACME_URL) 262 ;; (Refer to caddy's ACME manager https://github.com/caddyserver/certmagic) 263 ;ACME_DIRECTORY = https 264 ;; 265 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 266 ;; 267 ;; Manual TLS settings: (Only applicable if ENABLE_ACME=false) 268 ;; 269 ;; Generate steps: 270 ;; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com 271 ;; 272 ;; Or from a .pfx file exported from the Windows certificate store (do 273 ;; not forget to export the private key): 274 ;; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys 275 ;; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes 276 ;; Paths are relative to CUSTOM_PATH 277 ;CERT_FILE = https/cert.pem 278 ;KEY_FILE = https/key.pem 279 ;; 280 ;; Root directory containing templates and static files. 281 ;; default is the path where Gitea is executed 282 ;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_ 283 ;; 284 ;; Default path for App data 285 ;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_ 286 ;; 287 ;; Enable gzip compression for runtime-generated content, static resources excluded 288 ;ENABLE_GZIP = false 289 ;; 290 ;; Application profiling (memory and cpu) 291 ;; For "web" command it listens on localhost:6060 292 ;; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)_<username>_<temporary id> 293 ;ENABLE_PPROF = false 294 ;; 295 ;; PPROF_DATA_PATH, use an absolute path when you start gitea as service 296 ;PPROF_DATA_PATH = data/tmp/pprof ; Path is relative to _`AppWorkPath`_ 297 ;; 298 ;; Landing page, can be "home", "explore", "organizations", "login", or any URL such as "/org/repo" or even "https://anotherwebsite.com" 299 ;; The "login" choice is not a security measure but just a UI flow change, use REQUIRE_SIGNIN_VIEW to force users to log in. 300 ;LANDING_PAGE = home 301 ;; 302 ;; Enables git-lfs support. true or false, default is false. 303 ;LFS_START_SERVER = false 304 ;; 305 ;; 306 ;; LFS authentication secret, change this yourself 307 ;LFS_JWT_SECRET = 308 ;; 309 ;; Alternative location to specify LFS authentication secret. You cannot specify both this and LFS_JWT_SECRET, and must pick one 310 ;LFS_JWT_SECRET_URI = file:/etc/gitea/lfs_jwt_secret 311 ;; 312 ;; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail. 313 ;LFS_HTTP_AUTH_EXPIRY = 24h 314 ;; 315 ;; Maximum allowed LFS file size in bytes (Set to 0 for no limit). 316 ;LFS_MAX_FILE_SIZE = 0 317 ;; 318 ;; Maximum number of locks returned per page 319 ;LFS_LOCKS_PAGING_NUM = 50 320 ;; 321 ;; Allow graceful restarts using SIGHUP to fork 322 ;ALLOW_GRACEFUL_RESTARTS = true 323 ;; 324 ;; After a restart the parent will finish ongoing requests before 325 ;; shutting down. Force shutdown if this process takes longer than this delay. 326 ;; set to a negative value to disable 327 ;GRACEFUL_HAMMER_TIME = 60s 328 ;; 329 ;; Allows the setting of a startup timeout and waithint for Windows as SVC service 330 ;; 0 disables this. 331 ;STARTUP_TIMEOUT = 0 332 ;; 333 ;; Static resources, includes resources on custom/, public/ and all uploaded avatars web browser cache time. Note that this cache is disabled when RUN_MODE is "dev". Default is 6h 334 ;STATIC_CACHE_TIME = 6h 335 336 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 337 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 338 [database] 339 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 340 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 341 ;; 342 ;; Database to use. Either "mysql", "postgres", "mssql" or "sqlite3". 343 ;; 344 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 345 ;; 346 ;; MySQL Configuration 347 ;; 348 DB_TYPE = mysql 349 HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock 350 NAME = gitea 351 USER = root 352 ;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password. 353 ;SSL_MODE = false ; either "false" (default), "true", or "skip-verify" 354 ;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need. 355 ;; 356 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 357 ;; 358 ;; Postgres Configuration 359 ;; 360 ;DB_TYPE = postgres 361 ;HOST = 127.0.0.1:5432 ; can use socket e.g. /var/run/postgresql/ 362 ;NAME = gitea 363 ;USER = root 364 ;PASSWD = 365 ;SCHEMA = 366 ;SSL_MODE=disable ;either "disable" (default), "require", or "verify-full" 367 ;; 368 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 369 ;; 370 ;; SQLite Configuration 371 ;; 372 ;DB_TYPE = sqlite3 373 ;PATH= ; defaults to data/gitea.db 374 ;SQLITE_TIMEOUT = ; Query timeout defaults to: 500 375 ;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode 376 ;; 377 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 378 ;; 379 ;; MSSQL Configuration 380 ;; 381 ;DB_TYPE = mssql 382 ;HOST = 172.17.0.2:1433 383 ;NAME = gitea 384 ;USER = SA 385 ;PASSWD = MwantsaSecurePassword1 386 ;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need. 387 ;; 388 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 389 ;; 390 ;; Other settings 391 ;; 392 ;; For iterate buffer, default is 50 393 ;ITERATE_BUFFER_SIZE = 50 394 ;; 395 ;; Show the database generated SQL 396 ;LOG_SQL = false 397 ;; 398 ;; Maximum number of DB Connect retries 399 ;DB_RETRIES = 10 400 ;; 401 ;; Backoff time per DB retry (time.Duration) 402 ;DB_RETRY_BACKOFF = 3s 403 ;; 404 ;; Max idle database connections on connection pool, default is 2 405 ;MAX_IDLE_CONNS = 2 406 ;; 407 ;; Database connection max life time, default is 0 or 3s mysql (See #6804 & #7071 for reasoning) 408 ;CONN_MAX_LIFETIME = 3s 409 ;; 410 ;; Database maximum number of open connections, default is 0 meaning no maximum 411 ;MAX_OPEN_CONNS = 0 412 ;; 413 ;; Whether execute database models migrations automatically 414 ;AUTO_MIGRATION = true 415 ;; 416 ;; Threshold value (in seconds) beyond which query execution time is logged as a warning in the xorm logger 417 ;; 418 ;SLOW_QUERY_THRESHOLD = 5s 419 420 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 421 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 422 [security] 423 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 424 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 425 ;; 426 ;; Whether the installer is disabled (set to true to disable the installer) 427 INSTALL_LOCK = false 428 ;; 429 ;; Global secret key that will be used 430 ;; This key is VERY IMPORTANT. If you lose it, the data encrypted by it (like 2FA secret) can't be decrypted anymore. 431 SECRET_KEY = 432 ;; 433 ;; Alternative location to specify secret key, instead of this file; you cannot specify both this and SECRET_KEY, and must pick one 434 ;; This key is VERY IMPORTANT. If you lose it, the data encrypted by it (like 2FA secret) can't be decrypted anymore. 435 ;SECRET_KEY_URI = file:/etc/gitea/secret_key 436 ;; 437 ;; Secret used to validate communication within Gitea binary. 438 INTERNAL_TOKEN = 439 ;; 440 ;; Alternative location to specify internal token, instead of this file; you cannot specify both this and INTERNAL_TOKEN, and must pick one 441 ;INTERNAL_TOKEN_URI = file:/etc/gitea/internal_token 442 ;; 443 ;; How long to remember that a user is logged in before requiring relogin (in days) 444 ;LOGIN_REMEMBER_DAYS = 31 445 ;; 446 ;; Name of the cookie used to store the current username. 447 ;COOKIE_USERNAME = gitea_awesome 448 ;; 449 ;; Name of cookie used to store authentication information. 450 ;COOKIE_REMEMBER_NAME = gitea_incredible 451 ;; 452 ;; Reverse proxy authentication header name of user name, email, and full name 453 ;REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER 454 ;REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL 455 ;REVERSE_PROXY_AUTHENTICATION_FULL_NAME = X-WEBAUTH-FULLNAME 456 ;; 457 ;; Interpret X-Forwarded-For header or the X-Real-IP header and set this as the remote IP for the request 458 ;REVERSE_PROXY_LIMIT = 1 459 ;; 460 ;; List of IP addresses and networks separated by comma of trusted proxy servers. Use `*` to trust all. 461 ;REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128 462 ;; 463 ;; The minimum password length for new Users 464 ;MIN_PASSWORD_LENGTH = 8 465 ;; 466 ;; Set to true to allow users to import local server paths 467 ;IMPORT_LOCAL_PATHS = false 468 ;; 469 ;; Set to false to allow users with git hook privileges to create custom git hooks. 470 ;; Custom git hooks can be used to perform arbitrary code execution on the host operating system. 471 ;; This enables the users to access and modify this config file and the Gitea database and interrupt the Gitea service. 472 ;; By modifying the Gitea database, users can gain Gitea administrator privileges. 473 ;; It also enables them to access other resources available to the user on the operating system that is running the Gitea instance and perform arbitrary actions in the name of the Gitea OS user. 474 ;; WARNING: This maybe harmful to you website or your operating system. 475 ;; WARNING: Setting this to true does not change existing hooks in git repos; adjust it before if necessary. 476 ;DISABLE_GIT_HOOKS = true 477 ;; 478 ;; Set to true to disable webhooks feature. 479 ;DISABLE_WEBHOOKS = false 480 ;; 481 ;; Set to false to allow pushes to gitea repositories despite having an incomplete environment - NOT RECOMMENDED 482 ;ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET = true 483 ;; 484 ;;Comma separated list of character classes required to pass minimum complexity. 485 ;;If left empty or no valid values are specified, the default is off (no checking) 486 ;;Classes include "lower,upper,digit,spec" 487 ;PASSWORD_COMPLEXITY = off 488 ;; 489 ;; Password Hash algorithm, either "argon2", "pbkdf2", "scrypt" or "bcrypt" 490 ;PASSWORD_HASH_ALGO = pbkdf2 491 ;; 492 ;; Set false to allow JavaScript to read CSRF cookie 493 ;CSRF_COOKIE_HTTP_ONLY = true 494 ;; 495 ;; Validate against https://haveibeenpwned.com/Passwords to see if a password has been exposed 496 ;PASSWORD_CHECK_PWN = false 497 ;; 498 ;; Cache successful token hashes. API tokens are stored in the DB as pbkdf2 hashes however, this means that there is a potentially significant hashing load when there are multiple API operations. 499 ;; This cache will store the successfully hashed tokens in a LRU cache as a balance between performance and security. 500 ;SUCCESSFUL_TOKENS_CACHE_SIZE = 20 501 ;; 502 ;; Reject API tokens sent in URL query string (Accept Header-based API tokens only). This avoids security vulnerabilities 503 ;; stemming from cached/logged plain-text API tokens. 504 ;; In future releases, this will become the default behavior 505 ;DISABLE_QUERY_AUTH_TOKEN = false 506 507 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 508 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 509 [camo] 510 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 511 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 512 ;; 513 ;; At the moment we only support images 514 ;; 515 ;; if the camo is enabled 516 ;ENABLED = false 517 ;; url to a camo image proxy, it **is required** if camo is enabled. 518 ;SERVER_URL = 519 ;; HMAC to encode urls with, it **is required** if camo is enabled. 520 ;HMAC_KEY = 521 ;; Set to true to use camo for https too lese only non https urls are proxyed 522 ;ALLWAYS = false 523 524 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 525 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 526 [oauth2] 527 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 528 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 529 ;; 530 ;; Enables OAuth2 provider 531 ENABLED = true 532 ;; 533 ;; Algorithm used to sign OAuth2 tokens. Valid values: HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512, EdDSA 534 ;JWT_SIGNING_ALGORITHM = RS256 535 ;; 536 ;; Private key file path used to sign OAuth2 tokens. The path is relative to APP_DATA_PATH. 537 ;; This setting is only needed if JWT_SIGNING_ALGORITHM is set to RS256, RS384, RS512, ES256, ES384 or ES512. 538 ;; The file must contain a RSA or ECDSA private key in the PKCS8 format. If no key exists a 4096 bit key will be created for you. 539 ;JWT_SIGNING_PRIVATE_KEY_FILE = jwt/private.pem 540 ;; 541 ;; OAuth2 authentication secret for access and refresh tokens, change this yourself to a unique string. CLI generate option is helpful in this case. https://docs.gitea.io/en-us/command-line/#generate 542 ;; This setting is only needed if JWT_SIGNING_ALGORITHM is set to HS256, HS384 or HS512. 543 ;JWT_SECRET = 544 ;; 545 ;; Alternative location to specify OAuth2 authentication secret. You cannot specify both this and JWT_SECRET, and must pick one 546 ;JWT_SECRET_URI = file:/etc/gitea/oauth2_jwt_secret 547 ;; 548 ;; Lifetime of an OAuth2 access token in seconds 549 ;ACCESS_TOKEN_EXPIRATION_TIME = 3600 550 ;; 551 ;; Lifetime of an OAuth2 refresh token in hours 552 ;REFRESH_TOKEN_EXPIRATION_TIME = 730 553 ;; 554 ;; Check if refresh token got already used 555 ;INVALIDATE_REFRESH_TOKENS = false 556 ;; 557 ;; Maximum length of oauth2 token/cookie stored on server 558 ;MAX_TOKEN_LENGTH = 32767 559 ;; 560 ;; Pre-register OAuth2 applications for some universally useful services 561 ;; * https://github.com/hickford/git-credential-oauth 562 ;; * https://github.com/git-ecosystem/git-credential-manager 563 ;; * https://gitea.com/gitea/tea 564 ;DEFAULT_APPLICATIONS = git-credential-oauth, git-credential-manager, tea 565 566 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 567 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 568 [log] 569 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 570 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 571 ;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log 572 ;ROOT_PATH = 573 ;; 574 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 575 ;; Main Logger 576 ;; 577 ;; Either "console", "file" or "conn", default is "console" 578 ;; Use comma to separate multiple modes, e.g. "console, file" 579 MODE = console 580 ;; 581 ;; Either "Trace", "Debug", "Info", "Warn", "Error" or "None", default is "Info" 582 LEVEL = Info 583 ;; 584 ;; Print Stacktrace with logs (rarely helpful, do not set) Either "Trace", "Debug", "Info", "Warn", "Error", default is "None" 585 ;STACKTRACE_LEVEL = None 586 ;; 587 ;; Buffer length of the channel, keep it as it is if you don't know what it is. 588 ;BUFFER_LEN = 10000 589 ;; 590 ;; Sub logger modes, a single comma means use default MODE above, empty means disable it 591 ;logger.access.MODE= 592 ;logger.router.MODE=, 593 ;logger.xorm.MODE=, 594 ;; 595 ;; Collect SSH logs (Creates log from ssh git request) 596 ;; 597 ;ENABLE_SSH_LOG = false 598 ;; 599 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 600 ;; 601 ;; Access Logger (Creates log in NCSA common log format) 602 ;; 603 ;; Print request id which parsed from request headers in access log, when access log is enabled. 604 ;; * E.g: 605 ;; * In request Header: X-Request-ID: test-id-123 606 ;; * Configuration in app.ini: REQUEST_ID_HEADERS = X-Request-ID 607 ;; * Print in log: 127.0.0.1:58384 - - [14/Feb/2023:16:33:51 +0800] "test-id-123" 608 ;; 609 ;; If you configure more than one in the .ini file, it will match in the order of configuration, 610 ;; and the first match will be finally printed in the log. 611 ;; * E.g: 612 ;; * In request Header: X-Trace-ID: trace-id-1q2w3e4r 613 ;; * Configuration in app.ini: REQUEST_ID_HEADERS = X-Request-ID, X-Trace-ID, X-Req-ID 614 ;; * Print in log: 127.0.0.1:58384 - - [14/Feb/2023:16:33:51 +0800] "trace-id-1q2w3e4r" 615 ;; 616 ;REQUEST_ID_HEADERS = 617 ;; 618 ;; Sets the template used to create the access log. 619 ;ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteHost}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}" "{{.Ctx.Req.UserAgent}}" 620 621 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 622 ;; 623 ;; Log modes (aka log writers) 624 ;; 625 ;[log.%(WriterMode)] 626 ;MODE=console/file/conn/... 627 ;LEVEL= 628 ;FLAGS = stdflags 629 ;EXPRESSION = 630 ;PREFIX = 631 ;COLORIZE = false 632 ;; 633 ;[log.console] 634 ;STDERR = false 635 ;; 636 ;[log.file] 637 ;; Set the file_name for the logger. If this is a relative path this will be relative to ROOT_PATH 638 ;FILE_NAME = 639 ;; This enables automated log rotate(switch of following options), default is true 640 ;LOG_ROTATE = true 641 ;; Max size shift of a single file, default is 28 means 1 << 28, 256MB 642 ;MAX_SIZE_SHIFT = 28 643 ;; Segment log daily, default is true 644 ;DAILY_ROTATE = true 645 ;; delete the log file after n days, default is 7 646 ;MAX_DAYS = 7 647 ;; compress logs with gzip 648 ;COMPRESS = true 649 ;; compression level see godoc for compress/gzip 650 ;COMPRESSION_LEVEL = -1 651 ;; 652 ;[log.conn] 653 ;; Reconnect host for every single message, default is false 654 ;RECONNECT_ON_MSG = false 655 ;; Try to reconnect when connection is lost, default is false 656 ;RECONNECT = false 657 ;; Either "tcp", "unix" or "udp", default is "tcp" 658 ;PROTOCOL = tcp 659 ;; Host address 660 ;ADDR = 661 662 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 663 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 664 [git] 665 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 666 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 667 ;; 668 ;; The path of git executable. If empty, Gitea searches through the PATH environment. 669 ;PATH = 670 ;; 671 ;; The HOME directory for Git 672 ;HOME_PATH = %(APP_DATA_PATH)s/home 673 ;; 674 ;; Disables highlight of added and removed changes 675 ;DISABLE_DIFF_HIGHLIGHT = false 676 ;; 677 ;; Max number of lines allowed in a single file in diff view 678 ;MAX_GIT_DIFF_LINES = 1000 679 ;; 680 ;; Max number of allowed characters in a line in diff view 681 ;MAX_GIT_DIFF_LINE_CHARACTERS = 5000 682 ;; 683 ;; Max number of files shown in diff view 684 ;MAX_GIT_DIFF_FILES = 100 685 ;; 686 ;; Set the default commits range size 687 ;COMMITS_RANGE_SIZE = 50 688 ;; 689 ;; Set the default branches range size 690 ;BRANCHES_RANGE_SIZE = 20 691 ;; 692 ;; Arguments for command 'git gc', e.g. "--aggressive --auto" 693 ;; see more on http://git-scm.com/docs/git-gc/ 694 ;GC_ARGS = 695 ;; 696 ;; If use git wire protocol version 2 when git version >= 2.18, default is true, set to false when you always want git wire protocol version 1 697 ;; To enable this for Git over SSH when using a OpenSSH server, add `AcceptEnv GIT_PROTOCOL` to your sshd_config file. 698 ;ENABLE_AUTO_GIT_WIRE_PROTOCOL = true 699 ;; 700 ;; Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled) 701 ;PULL_REQUEST_PUSH_MESSAGE = true 702 ;; 703 ;; (Go-Git only) Don't cache objects greater than this in memory. (Set to 0 to disable.) 704 ;LARGE_OBJECT_THRESHOLD = 1048576 705 ;; Set to true to forcibly set core.protectNTFS=false 706 ;DISABLE_CORE_PROTECT_NTFS=false 707 ;; Disable the usage of using partial clones for git. 708 ;DISABLE_PARTIAL_CLONE = false 709 710 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 711 ;; Git Operation timeout in seconds 712 ;[git.timeout] 713 ;DEFAULT = 360 714 ;MIGRATE = 600 715 ;MIRROR = 300 716 ;CLONE = 300 717 ;PULL = 300 718 ;GC = 60 719 720 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 721 ;; Git config options 722 ;; This section only does "set" config, a removed config key from this section won't be removed from git config automatically. The format is `some.configKey = value`. 723 ;[git.config] 724 ;diff.algorithm = histogram 725 ;core.logAllRefUpdates = true 726 ;gc.reflogExpire = 90 727 728 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 729 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 730 [service] 731 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 732 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 733 ;; 734 ;; Time limit to confirm account/email registration 735 ;ACTIVE_CODE_LIVE_MINUTES = 180 736 ;; 737 ;; Time limit to perform the reset of a forgotten password 738 ;RESET_PASSWD_CODE_LIVE_MINUTES = 180 739 ;; 740 ;; Whether a new user needs to confirm their email when registering. 741 ;REGISTER_EMAIL_CONFIRM = false 742 ;; 743 ;; Whether a new user needs to be confirmed manually after registration. (Requires `REGISTER_EMAIL_CONFIRM` to be disabled.) 744 ;REGISTER_MANUAL_CONFIRM = false 745 ;; 746 ;; List of domain names that are allowed to be used to register on a Gitea instance, wildcard is supported 747 ;; eg: gitea.io,example.com,*.mydomain.com 748 ;EMAIL_DOMAIN_ALLOWLIST = 749 ;; 750 ;; Comma-separated list of domain names that are not allowed to be used to register on a Gitea instance, wildcard is supported 751 ;EMAIL_DOMAIN_BLOCKLIST = 752 ;; 753 ;; Disallow registration, only allow admins to create accounts. 754 ;DISABLE_REGISTRATION = false 755 ;; 756 ;; Allow registration only using gitea itself, it works only when DISABLE_REGISTRATION is false 757 ;ALLOW_ONLY_INTERNAL_REGISTRATION = false 758 ;; 759 ;; Allow registration only using third-party services, it works only when DISABLE_REGISTRATION is false 760 ;ALLOW_ONLY_EXTERNAL_REGISTRATION = false 761 ;; 762 ;; User must sign in to view anything. 763 ;REQUIRE_SIGNIN_VIEW = false 764 ;; 765 ;; Mail notification 766 ;ENABLE_NOTIFY_MAIL = false 767 ;; 768 ;; This setting enables gitea to be signed in with HTTP BASIC Authentication using the user's password 769 ;; If you set this to false you will not be able to access the tokens endpoints on the API with your password 770 ;; Please note that setting this to false will not disable OAuth Basic or Basic authentication using a token 771 ;ENABLE_BASIC_AUTHENTICATION = true 772 ;; 773 ;; More detail: https://github.com/gogits/gogs/issues/165 774 ;ENABLE_REVERSE_PROXY_AUTHENTICATION = false 775 ; Enable this to allow reverse proxy authentication for API requests, the reverse proxy is responsible for ensuring that no CSRF is possible. 776 ;ENABLE_REVERSE_PROXY_AUTHENTICATION_API = false 777 ;ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false 778 ;ENABLE_REVERSE_PROXY_EMAIL = false 779 ;ENABLE_REVERSE_PROXY_FULL_NAME = false 780 ;; 781 ;; Enable captcha validation for registration 782 ;ENABLE_CAPTCHA = false 783 ;; 784 ;; Enable this to require captcha validation for login 785 ;REQUIRE_CAPTCHA_FOR_LOGIN = false 786 ;; 787 ;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha, mcaptcha, cfturnstile. 788 ;CAPTCHA_TYPE = image 789 ;; 790 ;; Change this to use recaptcha.net or other recaptcha service 791 ;RECAPTCHA_URL = https://www.google.com/recaptcha/ 792 ;; Enable recaptcha to use Google's recaptcha service 793 ;; Go to https://www.google.com/recaptcha/admin to sign up for a key 794 ;RECAPTCHA_SECRET = 795 ;RECAPTCHA_SITEKEY = 796 ;; 797 ;; For hCaptcha, create an account at https://accounts.hcaptcha.com/login to get your keys 798 ;HCAPTCHA_SECRET = 799 ;HCAPTCHA_SITEKEY = 800 ;; 801 ;; Change this to use demo.mcaptcha.org or your self-hosted mcaptcha.org instance. 802 ;MCAPTCHA_URL = https://demo.mcaptcha.org 803 ;; 804 ;; Go to your configured mCaptcha instance and register a sitekey 805 ;; and use your account's secret. 806 ;MCAPTCHA_SECRET = 807 ;MCAPTCHA_SITEKEY = 808 ;; 809 ;; Go to https://dash.cloudflare.com/?to=/:account/turnstile to sign up for a key 810 ;CF_TURNSTILE_SITEKEY = 811 ;CF_TURNSTILE_SECRET = 812 ;; 813 ;; Default value for KeepEmailPrivate 814 ;; Each new user will get the value of this setting copied into their profile 815 ;DEFAULT_KEEP_EMAIL_PRIVATE = false 816 ;; 817 ;; Default value for AllowCreateOrganization 818 ;; Every new user will have rights set to create organizations depending on this setting 819 ;DEFAULT_ALLOW_CREATE_ORGANIZATION = true 820 ;; Default value for IsRestricted 821 ;; Every new user will have restricted permissions depending on this setting 822 ;DEFAULT_USER_IS_RESTRICTED = false 823 ;; 824 ;; Either "public", "limited" or "private", default is "public" 825 ;; Limited is for users visible only to signed users 826 ;; Private is for users visible only to members of their organizations 827 ;; Public is for users visible for everyone 828 ;DEFAULT_USER_VISIBILITY = public 829 ;; 830 ;; Set which visibility modes a user can have 831 ;ALLOWED_USER_VISIBILITY_MODES = public,limited,private 832 ;; 833 ;; Either "public", "limited" or "private", default is "public" 834 ;; Limited is for organizations visible only to signed users 835 ;; Private is for organizations visible only to members of the organization 836 ;; Public is for organizations visible to everyone 837 ;DEFAULT_ORG_VISIBILITY = public 838 ;; 839 ;; Default value for DefaultOrgMemberVisible 840 ;; True will make the membership of the users visible when added to the organisation 841 ;DEFAULT_ORG_MEMBER_VISIBLE = false 842 ;; 843 ;; Default value for EnableDependencies 844 ;; Repositories will use dependencies by default depending on this setting 845 ;DEFAULT_ENABLE_DEPENDENCIES = true 846 ;; 847 ;; Dependencies can be added from any repository where the user is granted access or only from the current repository depending on this setting. 848 ;ALLOW_CROSS_REPOSITORY_DEPENDENCIES = true 849 ;; 850 ;; Default map service. No external API support has been included. A service has to allow 851 ;; searching using URL parameters, the location will be appended to the URL as escaped query parameter. 852 ;; Disabled by default, some example values are: 853 ;; - OpenStreetMap: https://www.openstreetmap.org/search?query= 854 ;; - Google Maps: https://www.google.com/maps/place/ 855 ;; - MapQuest: https://www.mapquest.com/search/ 856 ;; - Bing Maps: https://www.bing.com/maps?where1= 857 ; USER_LOCATION_MAP_URL = 858 ;; 859 ;; Enable heatmap on users profiles. 860 ;ENABLE_USER_HEATMAP = true 861 ;; 862 ;; Enable Timetracking 863 ;ENABLE_TIMETRACKING = true 864 ;; 865 ;; Default value for EnableTimetracking 866 ;; Repositories will use timetracking by default depending on this setting 867 ;DEFAULT_ENABLE_TIMETRACKING = true 868 ;; 869 ;; Default value for AllowOnlyContributorsToTrackTime 870 ;; Only users with write permissions can track time if this is true 871 ;DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true 872 ;; 873 ;; Value for the domain part of the user's email address in the git log if user 874 ;; has set KeepEmailPrivate to true. The user's email will be replaced with a 875 ;; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. Default 876 ;; value is "noreply." + DOMAIN, where DOMAIN resolves to the value from server.DOMAIN 877 ;; Note: do not use the <DOMAIN> notation below 878 ;NO_REPLY_ADDRESS = ; noreply.<DOMAIN> 879 ;; 880 ;; Show Registration button 881 ;SHOW_REGISTRATION_BUTTON = true 882 ;; 883 ;; Show milestones dashboard page - a view of all the user's milestones 884 ;SHOW_MILESTONES_DASHBOARD_PAGE = true 885 ;; 886 ;; Default value for AutoWatchNewRepos 887 ;; When adding a repo to a team or creating a new repo all team members will watch the 888 ;; repo automatically if enabled 889 ;AUTO_WATCH_NEW_REPOS = true 890 ;; 891 ;; Default value for AutoWatchOnChanges 892 ;; Make the user watch a repository When they commit for the first time 893 ;AUTO_WATCH_ON_CHANGES = false 894 ;; 895 ;; Minimum amount of time a user must exist before comments are kept when the user is deleted. 896 ;USER_DELETE_WITH_COMMENTS_MAX_TIME = 0 897 ;; Valid site url schemes for user profiles 898 ;VALID_SITE_URL_SCHEMES=http,https 899 900 901 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 902 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 903 ;; Other Settings 904 ;; 905 ;; Uncomment the [section.header] if you wish to 906 ;; set the below settings. 907 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 908 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 909 910 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 911 ;[repository] 912 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 913 ;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories. 914 ;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s 915 ;ROOT = 916 ;; 917 ;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available. 918 ;SCRIPT_TYPE = bash 919 ;; 920 ;; DETECTED_CHARSETS_ORDER tie-break order for detected charsets. 921 ;; If the charsets have equal confidence, tie-breaking will be done by order in this list 922 ;; with charsets earlier in the list chosen in preference to those later. 923 ;; Adding "defaults" will place the unused charsets at that position. 924 ;DETECTED_CHARSETS_ORDER = UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE, ISO-8859, windows-1252, ISO-8859, windows-1250, ISO-8859, ISO-8859, ISO-8859, windows-1253, ISO-8859, windows-1255, ISO-8859, windows-1251, windows-1256, KOI8-R, ISO-8859, windows-1254, Shift_JIS, GB18030, EUC-JP, EUC-KR, Big5, ISO-2022, ISO-2022, ISO-2022, IBM424_rtl, IBM424_ltr, IBM420_rtl, IBM420_ltr 925 ;; 926 ;; Default ANSI charset to override non-UTF-8 charsets to 927 ;ANSI_CHARSET = 928 ;; 929 ;; Force every new repository to be private 930 ;FORCE_PRIVATE = false 931 ;; 932 ;; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used. 933 ;DEFAULT_PRIVATE = last 934 ;; 935 ;; Default private when using push-to-create 936 ;DEFAULT_PUSH_CREATE_PRIVATE = true 937 ;; 938 ;; Global limit of repositories per user, applied at creation time. -1 means no limit 939 ;MAX_CREATION_LIMIT = -1 940 ;; 941 ;; Preferred Licenses to place at the top of the List 942 ;; The name here must match the filename in options/license or custom/options/license 943 ;PREFERRED_LICENSES = Apache License 2.0,MIT License 944 ;; 945 ;; Disable the ability to interact with repositories using the HTTP protocol 946 ;DISABLE_HTTP_GIT = false 947 ;; 948 ;; Value for Access-Control-Allow-Origin header, default is not to present 949 ;; WARNING: This may be harmful to your website if you do not give it a right value. 950 ;ACCESS_CONTROL_ALLOW_ORIGIN = 951 ;; 952 ;; Force ssh:// clone url instead of scp-style uri when default SSH port is used 953 ;USE_COMPAT_SSH_URI = false 954 ;; 955 ;; Value for the "go get" request returns the repository url as https or ssh, default is https 956 ;GO_GET_CLONE_URL_PROTOCOL = https 957 ;; 958 ;; Close issues as long as a commit on any branch marks it as fixed 959 ;DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = false 960 ;; 961 ;; Allow users to push local repositories to Gitea and have them automatically created for a user or an org 962 ;ENABLE_PUSH_CREATE_USER = false 963 ;ENABLE_PUSH_CREATE_ORG = false 964 ;; 965 ;; Comma separated list of globally disabled repo units. Allowed values: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects, repo.packages, repo.actions. 966 ;DISABLED_REPO_UNITS = 967 ;; 968 ;; Comma separated list of default new repo units. Allowed values: repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects, repo.packages, repo.actions. 969 ;; Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility. 970 ;; External wiki and issue tracker can't be enabled by default as it requires additional settings. 971 ;; Disabled repo units will not be added to new repositories regardless if it is in the default list. 972 ;DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages,repo.actions 973 ;; 974 ;; Comma separated list of default forked repo units. 975 ;; The set of allowed values and rules are the same as DEFAULT_REPO_UNITS. 976 ;DEFAULT_FORK_REPO_UNITS = repo.code,repo.pulls 977 ;; 978 ;; Prefix archive files by placing them in a directory named after the repository 979 ;PREFIX_ARCHIVE_FILES = true 980 ;; 981 ;; Disable migrating feature. 982 ;DISABLE_MIGRATIONS = false 983 ;; 984 ;; Disable stars feature. 985 ;DISABLE_STARS = false 986 ;; 987 ;; The default branch name of new repositories 988 ;DEFAULT_BRANCH = main 989 ;; 990 ;; Allow adoption of unadopted repositories 991 ;ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES = false 992 ;; 993 ;; Allow deletion of unadopted repositories 994 ;ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES = false 995 996 ;; Don't allow download source archive files from UI 997 ;DISABLE_DOWNLOAD_SOURCE_ARCHIVES = false 998 999 ;; Allow fork repositories without maximum number limit 1000 ;ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT = true 1001 1002 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1003 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1004 ;[repository.editor] 1005 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1006 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1007 ;; 1008 ;; List of file extensions for which lines should be wrapped in the Monaco editor 1009 ;; Separate extensions with a comma. To line wrap files without an extension, just put a comma 1010 ;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,.livemd, 1011 1012 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1013 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1014 ;[repository.local] 1015 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1016 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1017 ;; 1018 ;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart) 1019 ;LOCAL_COPY_PATH = tmp/local-repo 1020 1021 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1022 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1023 ;[repository.upload] 1024 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1025 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1026 ;; 1027 ;; Whether repository file uploads are enabled. Defaults to `true` 1028 ;ENABLED = true 1029 ;; 1030 ;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart) 1031 ;TEMP_PATH = data/tmp/uploads 1032 ;; 1033 ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. 1034 ;ALLOWED_TYPES = 1035 ;; 1036 ;; Max size of each file in megabytes. Defaults to 50MB 1037 ;FILE_MAX_SIZE = 50 1038 ;; 1039 ;; Max number of files per upload. Defaults to 5 1040 ;MAX_FILES = 5 1041 1042 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1043 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1044 ;[repository.pull-request] 1045 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1046 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1047 ;; 1048 ;; List of prefixes used in Pull Request title to mark them as Work In Progress (matched in a case-insensitive manner) 1049 ;WORK_IN_PROGRESS_PREFIXES = WIP:,[WIP] 1050 ;; 1051 ;; List of keywords used in Pull Request comments to automatically close a related issue 1052 ;CLOSE_KEYWORDS = close,closes,closed,fix,fixes,fixed,resolve,resolves,resolved 1053 ;; 1054 ;; List of keywords used in Pull Request comments to automatically reopen a related issue 1055 ;REOPEN_KEYWORDS = reopen,reopens,reopened 1056 ;; 1057 ;; Set default merge style for repository creating, valid options: merge, rebase, rebase-merge, squash, fast-forward-only 1058 ;DEFAULT_MERGE_STYLE = merge 1059 ;; 1060 ;; In the default merge message for squash commits include at most this many commits 1061 ;DEFAULT_MERGE_MESSAGE_COMMITS_LIMIT = 50 1062 ;; 1063 ;; In the default merge message for squash commits limit the size of the commit messages to this 1064 ;DEFAULT_MERGE_MESSAGE_SIZE = 5120 1065 ;; 1066 ;; In the default merge message for squash commits walk all commits to include all authors in the Co-authored-by otherwise just use those in the limited list 1067 ;DEFAULT_MERGE_MESSAGE_ALL_AUTHORS = false 1068 ;; 1069 ;; In default merge messages limit the number of approvers listed as Reviewed-by: to this many 1070 ;DEFAULT_MERGE_MESSAGE_MAX_APPROVERS = 10 1071 ;; 1072 ;; In default merge messages only include approvers who are official 1073 ;DEFAULT_MERGE_MESSAGE_OFFICIAL_APPROVERS_ONLY = true 1074 ;; 1075 ;; Add co-authored-by and co-committed-by trailers if committer does not match author 1076 ;ADD_CO_COMMITTER_TRAILERS = true 1077 ;; 1078 ;; In addition to testing patches using the three-way merge method, re-test conflicting patches with git apply 1079 ;TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY = false 1080 ;; 1081 ;; Retarget child pull requests to the parent pull request branch target on merge of parent pull request. It only works on merged PRs where the head and base branch target the same repo. 1082 ;RETARGET_CHILDREN_ON_MERGE = true 1083 1084 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1085 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1086 ;[repository.issue] 1087 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1088 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1089 ;; List of reasons why a Pull Request or Issue can be locked 1090 ;LOCK_REASONS = Too heated,Off-topic,Resolved,Spam 1091 ;; Maximum number of pinned Issues per repo 1092 ;; Set to 0 to disable pinning Issues 1093 ;MAX_PINNED = 3 1094 1095 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1096 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1097 ;[repository.release] 1098 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1099 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1100 ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. 1101 ;ALLOWED_TYPES = 1102 ;DEFAULT_PAGING_NUM = 10 1103 1104 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1105 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1106 ;[repository.signing] 1107 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1108 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1109 ;; 1110 ;; GPG key to use to sign commits, Defaults to the default - that is the value of git config --get user.signingkey 1111 ;; run in the context of the RUN_USER 1112 ;; Switch to none to stop signing completely 1113 ;SIGNING_KEY = default 1114 ;; 1115 ;; If a SIGNING_KEY ID is provided and is not set to default, use the provided Name and Email address as the signer. 1116 ;; These should match a publicized name and email address for the key. (When SIGNING_KEY is default these are set to 1117 ;; the results of git config --get user.name and git config --get user.email respectively and can only be overridden 1118 ;; by setting the SIGNING_KEY ID to the correct ID.) 1119 ;SIGNING_NAME = 1120 ;SIGNING_EMAIL = 1121 ;; 1122 ;; Sets the default trust model for repositories. Options are: collaborator, committer, collaboratorcommitter 1123 ;DEFAULT_TRUST_MODEL = collaborator 1124 ;; 1125 ;; Determines when gitea should sign the initial commit when creating a repository 1126 ;; Either: 1127 ;; - never 1128 ;; - pubkey: only sign if the user has a pubkey 1129 ;; - twofa: only sign if the user has logged in with twofa 1130 ;; - always 1131 ;; options other than none and always can be combined as comma separated list 1132 ;INITIAL_COMMIT = always 1133 ;; 1134 ;; Determines when to sign for CRUD actions 1135 ;; - as above 1136 ;; - parentsigned: requires that the parent commit is signed. 1137 ;CRUD_ACTIONS = pubkey, twofa, parentsigned 1138 ;; Determines when to sign Wiki commits 1139 ;; - as above 1140 ;WIKI = never 1141 ;; 1142 ;; Determines when to sign on merges 1143 ;; - basesigned: require that the parent of commit on the base repo is signed. 1144 ;; - commitssigned: require that all the commits in the head branch are signed. 1145 ;; - approved: only sign when merging an approved pr to a protected branch 1146 ;MERGES = pubkey, twofa, basesigned, commitssigned 1147 1148 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1149 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1150 ;[repository.mimetype_mapping] 1151 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1152 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1153 ;; 1154 ;; Custom MIME type mapping for downloadable files 1155 ;.apk=application/vnd.android.package-archive 1156 1157 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1158 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1159 ;[project] 1160 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1161 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1162 ;; Default templates for project boards 1163 ;PROJECT_BOARD_BASIC_KANBAN_TYPE = To Do, In Progress, Done 1164 ;PROJECT_BOARD_BUG_TRIAGE_TYPE = Needs Triage, High Priority, Low Priority, Closed 1165 1166 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1167 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1168 ;[cors] 1169 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1170 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1171 ;; 1172 ;; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers 1173 ;; enable cors headers (disabled by default) 1174 ;ENABLED = false 1175 ;; 1176 ;; list of requesting origins that are allowed, eg: "https://*.example.com" 1177 ;ALLOW_DOMAIN = * 1178 ;; 1179 ;; list of methods allowed to request 1180 ;METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS 1181 ;; 1182 ;; max time to cache response 1183 ;MAX_AGE = 10m 1184 ;; 1185 ;; allow request with credentials 1186 ;ALLOW_CREDENTIALS = false 1187 ;; 1188 ;; headers to permit 1189 ;HEADERS = Content-Type,User-Agent 1190 ;; 1191 ;; set X-FRAME-OPTIONS header 1192 ;X_FRAME_OPTIONS = SAMEORIGIN 1193 1194 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1195 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1196 ;[ui] 1197 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1198 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1199 ;; 1200 ;; Number of repositories that are displayed on one explore page 1201 ;EXPLORE_PAGING_NUM = 20 1202 ;; 1203 ;; Number of issues that are displayed on one page 1204 ;ISSUE_PAGING_NUM = 20 1205 ;; 1206 ;; Number of maximum commits displayed in one activity feed 1207 ;FEED_MAX_COMMIT_NUM = 5 1208 ;; 1209 ;; Number of items that are displayed in home feed 1210 ;FEED_PAGING_NUM = 20 1211 ;; 1212 ;; Number of items that are displayed in a single subsitemap 1213 ;SITEMAP_PAGING_NUM = 20 1214 ;; 1215 ;; Number of maximum commits displayed in commit graph. 1216 ;GRAPH_MAX_COMMIT_NUM = 100 1217 ;; 1218 ;; Number of line of codes shown for a code comment 1219 ;CODE_COMMENT_LINES = 4 1220 ;; 1221 ;; Max size of files to be displayed (default is 8MiB) 1222 ;MAX_DISPLAY_FILE_SIZE = 8388608 1223 ;; 1224 ;; Detect ambiguous unicode characters in file contents and show warnings on the UI 1225 ;AMBIGUOUS_UNICODE_DETECTION = true 1226 ;; 1227 ;; Whether the email of the user should be shown in the Explore Users page 1228 ;SHOW_USER_EMAIL = true 1229 ;; 1230 ;; Set the default theme for the Gitea install 1231 ;DEFAULT_THEME = gitea-auto 1232 ;; 1233 ;; All available themes. Allow users select personalized themes regardless of the value of `DEFAULT_THEME`. 1234 ;; Leave it empty to allow users to select any theme from "{CustomPath}/public/assets/css/theme-*.css" 1235 ;THEMES = 1236 ;; 1237 ;; All available reactions users can choose on issues/prs and comments. 1238 ;; Values can be emoji alias (:smile:) or a unicode emoji. 1239 ;; For custom reactions, add a tightly cropped square image to public/assets/img/emoji/reaction_name.png 1240 ;REACTIONS = +1, -1, laugh, hooray, confused, heart, rocket, eyes 1241 ;; 1242 ;; Change the number of users that are displayed in reactions tooltip (triggered by mouse hover). 1243 ;REACTION_MAX_USER_NUM = 10 1244 ;; 1245 ;; Additional Emojis not defined in the utf8 standard 1246 ;; By default we support gitea (:gitea:), to add more copy them to public/assets/img/emoji/emoji_name.png and add it to this config. 1247 ;; Dont mistake it for Reactions. 1248 ;CUSTOM_EMOJIS = gitea, codeberg, gitlab, git, github, gogs 1249 ;; 1250 ;; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used. 1251 ;DEFAULT_SHOW_FULL_NAME = false 1252 ;; 1253 ;; Whether to search within description at repository search on explore page. 1254 ;SEARCH_REPO_DESCRIPTION = true 1255 ;; 1256 ;; Whether to only show relevant repos on the explore page when no keyword is specified and default sorting is used. 1257 ;; A repo is considered irrelevant if it's a fork or if it has no metadata (no description, no icon, no topic). 1258 ;ONLY_SHOW_RELEVANT_REPOS = false 1259 ;; 1260 ;; Change the sort type of the explore pages. 1261 ;; Default is "recentupdate", but you also have "alphabetically", "reverselastlogin", "newest", "oldest". 1262 ;EXPLORE_PAGING_DEFAULT_SORT = recentupdate 1263 ;; 1264 ;; The tense all timestamps should be rendered in. Possible values are `absolute` time (i.e. 1970-01-01, 11:59) and `mixed`. 1265 ;; `mixed` means most timestamps are rendered in relative time (i.e. 2 days ago). 1266 ;PREFERRED_TIMESTAMP_TENSE = mixed 1267 1268 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1269 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1270 ;[ui.admin] 1271 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1272 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1273 ;; 1274 ;; Number of users that are displayed on one page 1275 ;USER_PAGING_NUM = 50 1276 ;; 1277 ;; Number of repos that are displayed on one page 1278 ;REPO_PAGING_NUM = 50 1279 ;; 1280 ;; Number of notices that are displayed on one page 1281 ;NOTICE_PAGING_NUM = 25 1282 ;; 1283 ;; Number of organizations that are displayed on one page 1284 ;ORG_PAGING_NUM = 50 1285 1286 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1287 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1288 ;[ui.user] 1289 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1290 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1291 ;; Number of repos that are displayed on one page 1292 ;REPO_PAGING_NUM = 15 1293 1294 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1295 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1296 ;[ui.meta] 1297 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1298 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1299 ;AUTHOR = Gitea - Git with a cup of tea 1300 ;DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go 1301 ;KEYWORDS = go,git,self-hosted,gitea 1302 1303 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1304 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1305 ;[ui.notification] 1306 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1307 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1308 ;; 1309 ;; Control how often the notification endpoint is polled to update the notification 1310 ;; The timeout will increase to MAX_TIMEOUT in TIMEOUT_STEPs if the notification count is unchanged 1311 ;; Set MIN_TIMEOUT to -1 to turn off 1312 ;MIN_TIMEOUT = 10s 1313 ;MAX_TIMEOUT = 60s 1314 ;TIMEOUT_STEP = 10s 1315 ;; 1316 ;; This setting determines how often the db is queried to get the latest notification counts. 1317 ;; If the browser client supports EventSource and SharedWorker, a SharedWorker will be used in preference to polling notification. Set to -1 to disable the EventSource 1318 ;EVENT_SOURCE_UPDATE_TIME = 10s 1319 1320 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1321 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1322 ;[ui.svg] 1323 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1324 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1325 ;; 1326 ;; Whether to render SVG files as images. If SVG rendering is disabled, SVG files are displayed as text and cannot be embedded in markdown files as images. 1327 ;ENABLE_RENDER = true 1328 1329 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1330 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1331 ;[ui.csv] 1332 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1333 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1334 ;; 1335 ;; Maximum allowed file size in bytes to render CSV files as table. (Set to 0 for no limit). 1336 ;MAX_FILE_SIZE = 524288 1337 1338 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1339 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1340 ;[markdown] 1341 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1342 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1343 ;; 1344 ;; Render soft line breaks as hard line breaks, which means a single newline character between 1345 ;; paragraphs will cause a line break and adding trailing whitespace to paragraphs is not 1346 ;; necessary to force a line break. 1347 ;; Render soft line breaks as hard line breaks for comments 1348 ;ENABLE_HARD_LINE_BREAK_IN_COMMENTS = true 1349 ;; 1350 ;; Render soft line breaks as hard line breaks for markdown documents 1351 ;ENABLE_HARD_LINE_BREAK_IN_DOCUMENTS = false 1352 ;; 1353 ;; Comma separated list of custom URL-Schemes that are allowed as links when rendering Markdown 1354 ;; for example git,magnet,ftp (more at https://en.wikipedia.org/wiki/List_of_URI_schemes) 1355 ;; URLs starting with http and https are always displayed, whatever is put in this entry. 1356 ;; If this entry is empty, all URL schemes are allowed. 1357 ;CUSTOM_URL_SCHEMES = 1358 ;; 1359 ;; List of file extensions that should be rendered/edited as Markdown 1360 ;; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma 1361 ;FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd,.livemd 1362 ;; 1363 ;; Enables math inline and block detection 1364 ;ENABLE_MATH = true 1365 1366 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1367 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1368 ;[ssh.minimum_key_sizes] 1369 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1370 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1371 ;; 1372 ;; Define allowed algorithms and their minimum key length (use -1 to disable a type) 1373 ;ED25519 = 256 1374 ;ECDSA = 256 1375 ;RSA = 3071 ; we allow 3071 here because an otherwise valid 3072 bit RSA key can be reported as having 3071 bit length 1376 ;DSA = -1 ; set to 1024 to switch on 1377 1378 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1379 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1380 ;[indexer] 1381 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1382 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1383 ;; 1384 ;; Issue Indexer settings 1385 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1386 ;; 1387 ;; Issue indexer type, currently support: bleve, db, elasticsearch or meilisearch default is bleve 1388 ;ISSUE_INDEXER_TYPE = bleve 1389 ;; 1390 ;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve 1391 ;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_. 1392 ;; 1393 ;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch (e.g. http://elastic:password@localhost:9200) or meilisearch (e.g. http://:apikey@localhost:7700) 1394 ;ISSUE_INDEXER_CONN_STR = 1395 ;; 1396 ;; Issue indexer name, available when ISSUE_INDEXER_TYPE is elasticsearch or meilisearch. 1397 ;ISSUE_INDEXER_NAME = gitea_issues 1398 ;; 1399 ;; Timeout the indexer if it takes longer than this to start. 1400 ;; Set to -1 to disable timeout. 1401 ;STARTUP_TIMEOUT = 30s 1402 ;; 1403 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1404 ;; Repository Indexer settings 1405 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1406 ;; 1407 ;; repo indexer by default disabled, since it uses a lot of disk space 1408 ;REPO_INDEXER_ENABLED = false 1409 ;; 1410 ;; repo indexer units, the items to index, could be `sources`, `forks`, `mirrors`, `templates` or any combination of them separated by a comma. 1411 ;; If empty then it defaults to `sources` only, as if you'd like to disable fully please see REPO_INDEXER_ENABLED. 1412 ;REPO_INDEXER_REPO_TYPES = sources,forks,mirrors,templates 1413 ;; 1414 ;; Code search engine type, could be `bleve` or `elasticsearch`. 1415 ;REPO_INDEXER_TYPE = bleve 1416 ;; 1417 ;; Index file used for code search. available when `REPO_INDEXER_TYPE` is bleve 1418 ;REPO_INDEXER_PATH = indexers/repos.bleve 1419 ;; 1420 ;; Code indexer connection string, available when `REPO_INDEXER_TYPE` is elasticsearch. i.e. http://elastic:changeme@localhost:9200 1421 ;REPO_INDEXER_CONN_STR = 1422 ;; 1423 ;; Code indexer name, available when `REPO_INDEXER_TYPE` is elasticsearch 1424 ;REPO_INDEXER_NAME = gitea_codes 1425 ;; 1426 ;; A comma separated list of glob patterns (see https://github.com/gobwas/glob) to include 1427 ;; in the index; default is empty 1428 ;REPO_INDEXER_INCLUDE = 1429 ;; 1430 ;; A comma separated list of glob patterns to exclude from the index; ; default is empty 1431 ;REPO_INDEXER_EXCLUDE = 1432 ;; 1433 ;MAX_FILE_SIZE = 1048576 1434 1435 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1436 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1437 ;[queue] 1438 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1439 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1440 ;; 1441 ;; Specific queues can be individually configured with [queue.name]. [queue] provides defaults 1442 ;; ([queue.issue_indexer] is special due to the old configuration described above) 1443 ;; 1444 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1445 ;; 1446 ;; General queue queue type, currently support: persistable-channel, channel, level, redis, dummy 1447 ;; default to persistable-channel 1448 ;TYPE = persistable-channel 1449 ;; 1450 ;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared. 1451 ;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`. 1452 ;; 1453 ;; Default queue length before a channel queue will block 1454 ;LENGTH = 100000 1455 ;; 1456 ;; Batch size to send for batched queues 1457 ;BATCH_LENGTH = 20 1458 ;; 1459 ;; Connection string for redis queues this will store the redis or redis-cluster connection string. 1460 ;; When `TYPE` is `persistable-channel`, this provides a directory for the underlying leveldb 1461 ;; or additional options of the form `leveldb://path/to/db?option=value&....`, and will override `DATADIR`. 1462 ;CONN_STR = "redis://127.0.0.1:6379/0" 1463 ;; 1464 ;; Provides the suffix of the default redis/disk queue name - specific queues can be overridden within in their [queue.name] sections. 1465 ;QUEUE_NAME = "_queue" 1466 ;; 1467 ;; Provides the suffix of the default redis/disk unique queue set name - specific queues can be overridden within in their [queue.name] sections. 1468 ;SET_NAME = "_unique" 1469 ;; 1470 ;; Maximum number of worker go-routines for the queue. Default value is "CpuNum/2" clipped to between 1 and 10. 1471 ;MAX_WORKERS = ; (dynamic) 1472 1473 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1474 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1475 ;[admin] 1476 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1477 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1478 ;; 1479 ;; Disallow regular (non-admin) users from creating organizations. 1480 ;DISABLE_REGULAR_ORG_CREATION = false 1481 ;; 1482 ;; Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled 1483 ;DEFAULT_EMAIL_NOTIFICATIONS = enabled 1484 ;; Disabled features for users, could be "deletion", "manage_ssh_keys","manage_gpg_keys" more features can be disabled in future 1485 ;; - deletion: a user cannot delete their own account 1486 ;; - manage_ssh_keys: a user cannot configure ssh keys 1487 ;; - manage_gpg_keys: a user cannot configure gpg keys 1488 ;USER_DISABLED_FEATURES = 1489 ;; Comma separated list of disabled features ONLY if the user has an external login type (eg. LDAP, Oauth, etc.), could be `deletion`, `manage_ssh_keys`, `manage_gpg_keys`. This setting is independent from `USER_DISABLED_FEATURES` and supplements its behavior. 1490 ;; - deletion: a user cannot delete their own account 1491 ;; - manage_ssh_keys: a user cannot configure ssh keys 1492 ;; - manage_gpg_keys: a user cannot configure gpg keys 1493 ;;EXTERNAL_USER_DISABLE_FEATURES = 1494 1495 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1496 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1497 ;[openid] 1498 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1499 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1500 ;; 1501 ;; OpenID is an open, standard and decentralized authentication protocol. 1502 ;; Your identity is the address of a webpage you provide, which describes 1503 ;; how to prove you are in control of that page. 1504 ;; 1505 ;; For more info: https://en.wikipedia.org/wiki/OpenID 1506 ;; 1507 ;; Current implementation supports OpenID-2.0 1508 ;; 1509 ;; Tested to work providers at the time of writing: 1510 ;; - Any GNUSocial node (your.hostname.tld/username) 1511 ;; - Any SimpleID provider (http://simpleid.koinic.net) 1512 ;; - http://openid.org.cn/ 1513 ;; - openid.stackexchange.com 1514 ;; - login.launchpad.net 1515 ;; - <username>.livejournal.com 1516 ;; 1517 ;; Whether to allow signin in via OpenID 1518 ;ENABLE_OPENID_SIGNIN = true 1519 ;; 1520 ;; Whether to allow registering via OpenID 1521 ;; Do not include to rely on rhw DISABLE_REGISTRATION setting 1522 ;;ENABLE_OPENID_SIGNUP = true 1523 ;; 1524 ;; Allowed URI patterns (POSIX regexp). 1525 ;; Space separated. 1526 ;; Only these would be allowed if non-blank. 1527 ;; Example value: trusted.domain.org trusted.domain.net 1528 ;WHITELISTED_URIS = 1529 ;; 1530 ;; Forbidden URI patterns (POSIX regexp). 1531 ;; Space separated. 1532 ;; Only used if WHITELISTED_URIS is blank. 1533 ;; Example value: loadaverage.org/badguy stackexchange.com/.*spammer 1534 ;BLACKLISTED_URIS = 1535 1536 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1537 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1538 ;[oauth2_client] 1539 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1540 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1541 ;; 1542 ;; Whether a new auto registered oauth2 user needs to confirm their email. 1543 ;; Do not include to use the REGISTER_EMAIL_CONFIRM setting from the `[service]` section. 1544 ;REGISTER_EMAIL_CONFIRM = 1545 ;; 1546 ;; Scopes for the openid connect oauth2 provider (separated by space, the openid scope is implicitly added). 1547 ;; Typical values are profile and email. 1548 ;; For more information about the possible values see https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims 1549 ;OPENID_CONNECT_SCOPES = 1550 ;; 1551 ;; Automatically create user accounts for new oauth2 users. 1552 ;ENABLE_AUTO_REGISTRATION = false 1553 ;; 1554 ;; The source of the username for new oauth2 accounts: 1555 ;; userid = use the userid / sub attribute 1556 ;; nickname = use the nickname attribute 1557 ;; preferred_username = use the preferred_username attribute 1558 ;; email = use the username part of the email attribute 1559 ;; Note: `nickname`, `preferred_username` and `email` options will normalize input strings using the following criteria: 1560 ;; - diacritics are removed 1561 ;; - the characters in the set ['´`] are removed 1562 ;; - the characters in the set [\s~+] are replaced with "-" 1563 ;USERNAME = nickname 1564 ;; 1565 ;; Update avatar if available from oauth2 provider. 1566 ;; Update will be performed on each login. 1567 ;UPDATE_AVATAR = false 1568 ;; 1569 ;; How to handle if an account / email already exists: 1570 ;; disabled = show an error 1571 ;; login = show an account linking login 1572 ;; auto = link directly with the account 1573 ;ACCOUNT_LINKING = login 1574 1575 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1576 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1577 ;[webhook] 1578 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1579 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1580 ;; 1581 ;; Hook task queue length, increase if webhook shooting starts hanging 1582 ;QUEUE_LENGTH = 1000 1583 ;; 1584 ;; Deliver timeout in seconds 1585 ;DELIVER_TIMEOUT = 5 1586 ;; 1587 ;; Webhook can only call allowed hosts for security reasons. Comma separated list, eg: external, 192.168.1.0/24, *.mydomain.com 1588 ;; Built-in: loopback (for localhost), private (for LAN/intranet), external (for public hosts on internet), * (for all hosts) 1589 ;; CIDR list: 1.2.3.0/8, 2001:db8::/32 1590 ;; Wildcard hosts: *.mydomain.com, 192.168.100.* 1591 ;; Since 1.15.7. Default to * for 1.15.x, external for 1.16 and later 1592 ;ALLOWED_HOST_LIST = external 1593 ;; 1594 ;; Allow insecure certification 1595 ;SKIP_TLS_VERIFY = false 1596 ;; 1597 ;; Number of history information in each page 1598 ;PAGING_NUM = 10 1599 ;; 1600 ;; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy 1601 ;PROXY_URL = 1602 ;; 1603 ;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts. 1604 ;PROXY_HOSTS = 1605 1606 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1607 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1608 ;[mailer] 1609 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1610 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1611 ;; 1612 ;; NOTICE: this section is for Gitea 1.18 and later. If you are using Gitea 1.17 or older, 1613 ;; please refer to 1614 ;; https://github.com/go-gitea/gitea/blob/release/v1.17/custom/conf/app.example.ini 1615 ;; https://github.com/go-gitea/gitea/blob/release/v1.17/docs/content/doc/advanced/config-cheat-sheet.en-us.md 1616 ;; 1617 ;ENABLED = false 1618 ;; 1619 ;; Buffer length of channel, keep it as it is if you don't know what it is. 1620 ;SEND_BUFFER_LEN = 100 1621 ;; 1622 ;; Prefix displayed before subject in mail 1623 ;SUBJECT_PREFIX = 1624 ;; 1625 ;; Mail server protocol. One of "smtp", "smtps", "smtp+starttls", "smtp+unix", "sendmail", "dummy". 1626 ;; - sendmail: use the operating system's `sendmail` command instead of SMTP. This is common on Linux systems. 1627 ;; - dummy: send email messages to the log as a testing phase. 1628 ;; If your provider does not explicitly say which protocol it uses but does provide a port, 1629 ;; you can set SMTP_PORT instead and this will be inferred. 1630 ;; (Before 1.18, see the notice, this was controlled via MAILER_TYPE and IS_TLS_ENABLED.) 1631 ;PROTOCOL = 1632 ;; 1633 ;; Mail server address, e.g. smtp.gmail.com. 1634 ;; For smtp+unix, this should be a path to a unix socket instead. 1635 ;; (Before 1.18, see the notice, this was combined with SMTP_PORT as HOST.) 1636 ;SMTP_ADDR = 1637 ;; 1638 ;; Mail server port. Common ports are: 1639 ;; 25: insecure SMTP 1640 ;; 465: SMTP Secure 1641 ;; 587: StartTLS 1642 ;; If no protocol is specified, it will be inferred by this setting. 1643 ;; (Before 1.18, this was combined with SMTP_ADDR as HOST.) 1644 ;SMTP_PORT = 1645 ;; 1646 ;; Enable HELO operation. Defaults to true. 1647 ;ENABLE_HELO = true 1648 ;; 1649 ;; Custom hostname for HELO operation. 1650 ;; If no value is provided, one is retrieved from system. 1651 ;HELO_HOSTNAME = 1652 ;; 1653 ;; If set to `true`, completely ignores server certificate validation errors. 1654 ;; This option is unsafe. Consider adding the certificate to the system trust store instead. 1655 ;FORCE_TRUST_SERVER_CERT = false 1656 ;; 1657 ;; Use client certificate in connection. 1658 ;USE_CLIENT_CERT = false 1659 ;CLIENT_CERT_FILE = custom/mailer/cert.pem 1660 ;CLIENT_KEY_FILE = custom/mailer/key.pem 1661 ;; 1662 ;; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format 1663 ;FROM = 1664 ;; 1665 ;; Sometimes it is helpful to use a different address on the envelope. Set this to use ENVELOPE_FROM as the from on the envelope. Set to `<>` to send an empty address. 1666 ;ENVELOPE_FROM = 1667 ;; 1668 ;; Mailer user name and password, if required by provider. 1669 ;USER = 1670 ;; 1671 ;; Use PASSWD = `your password` for quoting if you use special characters in the password. 1672 ;PASSWD = 1673 ;; 1674 ;; Send mails only in plain text, without HTML alternative 1675 ;SEND_AS_PLAIN_TEXT = false 1676 ;; 1677 ;; Specify an alternative sendmail binary 1678 ;SENDMAIL_PATH = sendmail 1679 ;; 1680 ;; Specify any extra sendmail arguments 1681 ;; WARNING: if your sendmail program interprets options you should set this to "--" or terminate these args with "--" 1682 ;SENDMAIL_ARGS = 1683 ;; 1684 ;; Timeout for Sendmail 1685 ;SENDMAIL_TIMEOUT = 5m 1686 ;; 1687 ;; convert \r\n to \n for Sendmail 1688 ;SENDMAIL_CONVERT_CRLF = true 1689 1690 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1691 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1692 ;[email.incoming] 1693 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1694 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1695 ;; 1696 ;; Enable handling of incoming emails. 1697 ;ENABLED = false 1698 ;; 1699 ;; The email address including the %{token} placeholder that will be replaced per user/action. 1700 ;; Example: incoming+%{token}@example.com 1701 ;; The placeholder must appear in the user part of the address (before the @). 1702 ;REPLY_TO_ADDRESS = 1703 ;; 1704 ;; IMAP server host 1705 ;HOST = 1706 ;; 1707 ;; IMAP server port 1708 ;PORT = 1709 ;; 1710 ;; Username of the receiving account 1711 ;USERNAME = 1712 ;; 1713 ;; Password of the receiving account 1714 ;PASSWORD = 1715 ;; 1716 ;; Whether the IMAP server uses TLS. 1717 ;USE_TLS = false 1718 ;; 1719 ;; If set to true, completely ignores server certificate validation errors. This option is unsafe. 1720 ;SKIP_TLS_VERIFY = true 1721 ;; 1722 ;; The mailbox name where incoming mail will end up. 1723 ;MAILBOX = INBOX 1724 ;; 1725 ;; Whether handled messages should be deleted from the mailbox. 1726 ;DELETE_HANDLED_MESSAGE = true 1727 ;; 1728 ;; Maximum size of a message to handle. Bigger messages are ignored. Set to 0 to allow every size. 1729 ;MAXIMUM_MESSAGE_SIZE = 10485760 1730 1731 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1732 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1733 ;[cache] 1734 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1735 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1736 ;; 1737 ;; Either "memory", "redis", "memcache", or "twoqueue". default is "memory" 1738 ;ADAPTER = memory 1739 ;; 1740 ;; For "memory" only, GC interval in seconds, default is 60 1741 ;INTERVAL = 60 1742 ;; 1743 ;; For "redis", "redis-cluster" and "memcache", connection host address 1744 ;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` 1745 ;; redis-cluster: `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` 1746 ;; memcache: `127.0.0.1:11211` 1747 ;; twoqueue: `{"size":50000,"recent_ratio":0.25,"ghost_ratio":0.5}` or `50000` 1748 ;HOST = 1749 ;; 1750 ;; Time to keep items in cache if not used, default is 16 hours. 1751 ;; Setting it to -1 disables caching 1752 ;ITEM_TTL = 16h 1753 1754 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1755 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1756 ;; Last commit cache 1757 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1758 ;[cache.last_commit] 1759 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1760 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1761 ;; 1762 ;; Time to keep items in cache if not used, default is 8760 hours. 1763 ;; Setting it to -1 disables caching 1764 ;ITEM_TTL = 8760h 1765 ;; 1766 ;; Only enable the cache when repository's commits count great than 1767 ;COMMITS_COUNT = 1000 1768 1769 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1770 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1771 ;[session] 1772 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1773 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1774 ;; 1775 ;; Either "memory", "file", "redis", "redis-cluster", "db", "mysql", "couchbase", "memcache" or "postgres" 1776 ;; Default is "memory". "db" will reuse the configuration in [database] 1777 ;PROVIDER = memory 1778 ;; 1779 ;; Provider config options 1780 ;; memory: doesn't have any config yet 1781 ;; file: session file path, e.g. `data/sessions` 1782 ;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` 1783 ;; redis-cluster: `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` 1784 ;; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table` 1785 ;PROVIDER_CONFIG = data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_. 1786 ;; 1787 ;; Session cookie name 1788 ;COOKIE_NAME = i_like_gitea 1789 ;; 1790 ;; If you use session in https only: true or false. If not set, it defaults to `true` if the ROOT_URL is an HTTPS URL. 1791 ;COOKIE_SECURE = 1792 ;; 1793 ;; Session GC time interval in seconds, default is 86400 (1 day) 1794 ;GC_INTERVAL_TIME = 86400 1795 ;; 1796 ;; Session life time in seconds, default is 86400 (1 day) 1797 ;SESSION_LIFE_TIME = 86400 1798 ;; 1799 ;; SameSite settings. Either "none", "lax", or "strict" 1800 ;SAME_SITE=lax 1801 1802 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1803 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1804 ;[picture] 1805 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1806 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1807 ;; 1808 ;AVATAR_UPLOAD_PATH = data/avatars 1809 ;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars 1810 ;; 1811 ;; How Gitea deals with missing repository avatars 1812 ;; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used 1813 ;REPOSITORY_AVATAR_FALLBACK = none 1814 ;REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png 1815 ;; 1816 ;; Max Width and Height of uploaded avatars. 1817 ;; This is to limit the amount of RAM used when resizing the image. 1818 ;AVATAR_MAX_WIDTH = 4096 1819 ;AVATAR_MAX_HEIGHT = 4096 1820 ;; 1821 ;; The multiplication factor for rendered avatar images. 1822 ;; Larger values result in finer rendering on HiDPI devices. 1823 ;AVATAR_RENDERED_SIZE_FACTOR = 2 1824 ;; 1825 ;; Maximum allowed file size for uploaded avatars. 1826 ;; This is to limit the amount of RAM used when resizing the image. 1827 ;AVATAR_MAX_FILE_SIZE = 1048576 1828 ;; 1829 ;; If the uploaded file is not larger than this byte size, the image will be used as is, without resizing/converting. 1830 ;AVATAR_MAX_ORIGIN_SIZE = 262144 1831 ;; 1832 ;; Chinese users can choose "duoshuo" 1833 ;; or a custom avatar source, like: http://cn.gravatar.com/avatar/ 1834 ;GRAVATAR_SOURCE = gravatar 1835 ;; 1836 ;; This value will always be true in offline mode. 1837 ;DISABLE_GRAVATAR = false 1838 ;; 1839 ;; Federated avatar lookup uses DNS to discover avatar associated 1840 ;; with emails, see https://www.libravatar.org 1841 ;; This value will always be false in offline mode or when Gravatar is disabled. 1842 ;ENABLE_FEDERATED_AVATAR = false 1843 1844 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1845 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1846 ;[attachment] 1847 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1848 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1849 ;; 1850 ;; Whether issue and pull request attachments are enabled. Defaults to `true` 1851 ;ENABLED = true 1852 ;; 1853 ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. 1854 ;ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip 1855 ;; 1856 ;; Max size of each file. Defaults to 2048MB 1857 ;MAX_SIZE = 2048 1858 ;; 1859 ;; Max number of files per upload. Defaults to 5 1860 ;MAX_FILES = 5 1861 ;; 1862 ;; Storage type for attachments, `local` for local disk or `minio` for s3 compatible 1863 ;; object storage service, default is `local`. 1864 ;STORAGE_TYPE = local 1865 ;; 1866 ;; Allows the storage driver to redirect to authenticated URLs to serve files directly 1867 ;; Currently, only `minio` is supported. 1868 ;SERVE_DIRECT = false 1869 ;; 1870 ;; Path for attachments. Defaults to `attachments`. Only available when STORAGE_TYPE is `local` 1871 ;; Relative paths will be resolved to `${AppDataPath}/${attachment.PATH}` 1872 ;PATH = attachments 1873 ;; 1874 ;; Minio endpoint to connect only available when STORAGE_TYPE is `minio` 1875 ;MINIO_ENDPOINT = localhost:9000 1876 ;; 1877 ;; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio` 1878 ;MINIO_ACCESS_KEY_ID = 1879 ;; 1880 ;; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio` 1881 ;MINIO_SECRET_ACCESS_KEY = 1882 ;; 1883 ;; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio` 1884 ;MINIO_BUCKET = gitea 1885 ;; 1886 ;; Minio location to create bucket only available when STORAGE_TYPE is `minio` 1887 ;MINIO_LOCATION = us-east-1 1888 ;; 1889 ;; Minio base path on the bucket only available when STORAGE_TYPE is `minio` 1890 ;MINIO_BASE_PATH = attachments/ 1891 ;; 1892 ;; Minio enabled ssl only available when STORAGE_TYPE is `minio` 1893 ;MINIO_USE_SSL = false 1894 ;; 1895 ;; Minio skip SSL verification available when STORAGE_TYPE is `minio` 1896 ;MINIO_INSECURE_SKIP_VERIFY = false 1897 ;; 1898 ;; Minio checksum algorithm: default (for MinIO or AWS S3) or md5 (for Cloudflare or Backblaze) 1899 ;MINIO_CHECKSUM_ALGORITHM = default 1900 1901 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1902 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1903 ;[time] 1904 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1905 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1906 ;; 1907 ;; Location the UI time display i.e. Asia/Shanghai 1908 ;; Empty means server's location setting 1909 ;DEFAULT_UI_LOCATION = 1910 1911 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1912 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1913 ;[cron] 1914 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1915 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1916 ;; 1917 ;; Common settings 1918 ;; 1919 ;; Setting this to true will enable all cron tasks periodically with default settings. 1920 ;ENABLED = false 1921 ;; Setting this to true will run all enabled cron tasks when Gitea starts. 1922 ;RUN_AT_START = false 1923 ;; 1924 ;; Note: ``SCHEDULE`` accept formats 1925 ;; - Full crontab specs, e.g. "* * * * * ?" 1926 ;; - Descriptors, e.g. "@midnight", "@every 1h30m" 1927 ;; See more: https://pkg.go.dev/github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14 1928 1929 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1930 ;; Basic cron tasks - enabled by default 1931 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1932 1933 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1934 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1935 ;; Clean up old repository archives 1936 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1937 ;[cron.archive_cleanup] 1938 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1939 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1940 ;; Whether to enable the job 1941 ;ENABLED = true 1942 ;; Whether to always run at least once at start up time (if ENABLED) 1943 ;RUN_AT_START = true 1944 ;; Whether to emit notice on successful execution too 1945 ;NOTICE_ON_SUCCESS = false 1946 ;; Time interval for job to run 1947 ;SCHEDULE = @midnight 1948 ;; Archives created more than OLDER_THAN ago are subject to deletion 1949 ;OLDER_THAN = 24h 1950 1951 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1952 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1953 ;; Update mirrors 1954 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1955 ;[cron.update_mirrors] 1956 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1957 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1958 ;SCHEDULE = @every 10m 1959 ;; Enable running Update mirrors task periodically. 1960 ;ENABLED = true 1961 ;; Run Update mirrors task when Gitea starts. 1962 ;RUN_AT_START = false 1963 ;; Notice if not success 1964 ;NOTICE_ON_SUCCESS = false 1965 ;; Limit the number of mirrors added to the queue to this number 1966 ;; (negative values mean no limit, 0 will result in no result in no mirrors being queued effectively disabling pull mirror updating.) 1967 ;PULL_LIMIT=50 1968 ;; Limit the number of mirrors added to the queue to this number 1969 ;; (negative values mean no limit, 0 will result in no mirrors being queued effectively disabling push mirror updating) 1970 ;PUSH_LIMIT=50 1971 1972 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1973 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1974 ;; Repository health check 1975 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1976 ;[cron.repo_health_check] 1977 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1978 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1979 ;SCHEDULE = @midnight 1980 ;; Enable running Repository health check task periodically. 1981 ;ENABLED = true 1982 ;; Run Repository health check task when Gitea starts. 1983 ;RUN_AT_START = false 1984 ;; Notice if not success 1985 ;NOTICE_ON_SUCCESS = false 1986 ;TIMEOUT = 60s 1987 ;; Arguments for command 'git fsck', e.g. "--unreachable --tags" 1988 ;; see more on http://git-scm.com/docs/git-fsck 1989 ;ARGS = 1990 1991 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1992 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1993 ;; Check repository statistics 1994 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1995 ;[cron.check_repo_stats] 1996 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1997 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1998 ;; Enable running check repository statistics task periodically. 1999 ;ENABLED = true 2000 ;; Run check repository statistics task when Gitea starts. 2001 ;RUN_AT_START = true 2002 ;; Notice if not success 2003 ;NOTICE_ON_SUCCESS = false 2004 ;SCHEDULE = @midnight 2005 2006 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2007 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2008 ;[cron.update_migration_poster_id] 2009 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2010 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2011 ; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts. 2012 ;ENABLED = true 2013 ;; Update migrated repositories' issues and comments' posterid when starting server (default true) 2014 ;RUN_AT_START = true 2015 ;; Notice if not success 2016 ;NOTICE_ON_SUCCESS = false 2017 ;; Interval as a duration between each synchronization. (default every 24h) 2018 ;SCHEDULE = @midnight 2019 2020 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2021 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2022 ;; Synchronize external user data (only LDAP user synchronization is supported) 2023 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2024 ;[cron.sync_external_users] 2025 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2026 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2027 ;ENABLED = true 2028 ;; Synchronize external user data when starting server (default false) 2029 ;RUN_AT_START = false 2030 ;; Notice if not success 2031 ;NOTICE_ON_SUCCESS = false 2032 ;; Interval as a duration between each synchronization (default every 24h) 2033 ;SCHEDULE = @midnight 2034 ;; Create new users, update existing user data and disable users that are not in external source anymore (default) 2035 ;; or only create new users if UPDATE_EXISTING is set to false 2036 ;UPDATE_EXISTING = true 2037 2038 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2039 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2040 ;; Cleanup expired actions assets 2041 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2042 ;[cron.cleanup_actions] 2043 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2044 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2045 ;ENABLED = true 2046 ;RUN_AT_START = true 2047 ;SCHEDULE = @midnight 2048 2049 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2050 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2051 ;; Clean-up deleted branches 2052 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2053 ;[cron.deleted_branches_cleanup] 2054 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2055 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2056 ;ENABLED = true 2057 ;; Clean-up deleted branches when starting server (default true) 2058 ;RUN_AT_START = true 2059 ;; Notice if not success 2060 ;NOTICE_ON_SUCCESS = false 2061 ;; Interval as a duration between each synchronization (default every 24h) 2062 ;SCHEDULE = @midnight 2063 ;; deleted branches than OLDER_THAN ago are subject to deletion 2064 ;OLDER_THAN = 24h 2065 2066 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2067 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2068 ;; Cleanup hook_task table 2069 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2070 ;[cron.cleanup_hook_task_table] 2071 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2072 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2073 ;; Whether to enable the job 2074 ;ENABLED = true 2075 ;; Whether to always run at start up time (if ENABLED) 2076 ;RUN_AT_START = false 2077 ;; Time interval for job to run 2078 ;SCHEDULE = @midnight 2079 ;; OlderThan or PerWebhook. How the records are removed, either by age (i.e. how long ago hook_task record was delivered) or by the number to keep per webhook (i.e. keep most recent x deliveries per webhook). 2080 ;CLEANUP_TYPE = OlderThan 2081 ;; If CLEANUP_TYPE is set to OlderThan, then any delivered hook_task records older than this expression will be deleted. 2082 ;OLDER_THAN = 168h 2083 ;; If CLEANUP_TYPE is set to PerWebhook, this is number of hook_task records to keep for a webhook (i.e. keep the most recent x deliveries). 2084 ;NUMBER_TO_KEEP = 10 2085 2086 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2087 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2088 ;; Cleanup expired packages 2089 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2090 ;[cron.cleanup_packages] 2091 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2092 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2093 ;; Whether to enable the job 2094 ;ENABLED = true 2095 ;; Whether to always run at least once at start up time (if ENABLED) 2096 ;RUN_AT_START = true 2097 ;; Whether to emit notice on successful execution too 2098 ;NOTICE_ON_SUCCESS = false 2099 ;; Time interval for job to run 2100 ;SCHEDULE = @midnight 2101 ;; Unreferenced blobs created more than OLDER_THAN ago are subject to deletion 2102 ;OLDER_THAN = 24h 2103 2104 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2105 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2106 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2107 ; Extended cron task - not enabled by default 2108 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2109 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2110 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2111 2112 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2113 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2114 ;; Delete all unactivated accounts 2115 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2116 ;[cron.delete_inactive_accounts] 2117 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2118 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2119 ;ENABLED = false 2120 ;RUN_AT_START = false 2121 ;NOTICE_ON_SUCCESS = false 2122 ;SCHEDULE = @annually 2123 ;OLDER_THAN = 168h 2124 2125 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2126 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2127 ;; Delete all repository archives 2128 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2129 ;[cron.delete_repo_archives] 2130 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2131 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2132 ;ENABLED = false 2133 ;RUN_AT_START = false 2134 ;NOTICE_ON_SUCCESS = false 2135 ;SCHEDULE = @annually; 2136 2137 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2138 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2139 ;; Garbage collect all repositories 2140 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2141 ;[cron.git_gc_repos] 2142 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2143 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2144 ;ENABLED = false 2145 ;RUN_AT_START = false 2146 ;NOTICE_ON_SUCCESS = false 2147 ;SCHEDULE = @every 72h 2148 ;TIMEOUT = 60s 2149 ;; Arguments for command 'git gc' 2150 ;; The default value is same with [git] -> GC_ARGS 2151 ;ARGS = 2152 2153 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2154 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2155 ;; Update the '.ssh/authorized_keys' file with Gitea SSH keys 2156 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2157 ;[cron.resync_all_sshkeys] 2158 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2159 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2160 ;ENABLED = false 2161 ;RUN_AT_START = false 2162 ;NOTICE_ON_SUCCESS = false 2163 ;SCHEDULE = @every 72h 2164 2165 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2166 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2167 ;; Resynchronize pre-receive, update and post-receive hooks of all repositories. 2168 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2169 ;[cron.resync_all_hooks] 2170 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2171 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2172 ;ENABLED = false 2173 ;RUN_AT_START = false 2174 ;NOTICE_ON_SUCCESS = false 2175 ;SCHEDULE = @every 72h 2176 2177 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2178 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2179 ;; Reinitialize all missing Git repositories for which records exist 2180 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2181 ;[cron.reinit_missing_repos] 2182 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2183 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2184 ;ENABLED = false 2185 ;RUN_AT_START = false 2186 ;NOTICE_ON_SUCCESS = false 2187 ;SCHEDULE = @every 72h 2188 2189 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2190 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2191 ;; Delete all repositories missing their Git files 2192 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2193 ;[cron.delete_missing_repos] 2194 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2195 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2196 ;ENABLED = false 2197 ;RUN_AT_START = false 2198 ;NOTICE_ON_SUCCESS = false 2199 ;SCHEDULE = @every 72h 2200 2201 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2202 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2203 ;; Delete generated repository avatars 2204 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2205 ;[cron.delete_generated_repository_avatars] 2206 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2207 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2208 ;ENABLED = false 2209 ;RUN_AT_START = false 2210 ;NOTICE_ON_SUCCESS = false 2211 ;SCHEDULE = @every 72h 2212 2213 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2214 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2215 ;; Delete all old actions from database 2216 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2217 ;[cron.delete_old_actions] 2218 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2219 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2220 ;ENABLED = false 2221 ;RUN_AT_START = false 2222 ;NOTICE_ON_SUCCESS = false 2223 ;SCHEDULE = @every 168h 2224 ;OLDER_THAN = 8760h 2225 2226 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2227 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2228 ;; Check for new Gitea versions 2229 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2230 ;[cron.update_checker] 2231 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2232 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2233 ;ENABLED = true 2234 ;RUN_AT_START = false 2235 ;ENABLE_SUCCESS_NOTICE = false 2236 ;SCHEDULE = @every 168h 2237 ;HTTP_ENDPOINT = https://dl.gitea.com/gitea/version.json 2238 2239 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2240 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2241 ;; Delete all old system notices from database 2242 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2243 ;[cron.delete_old_system_notices] 2244 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2245 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2246 ;ENABLED = false 2247 ;RUN_AT_START = false 2248 ;NO_SUCCESS_NOTICE = false 2249 ;SCHEDULE = @every 168h 2250 ;OLDER_THAN = 8760h 2251 2252 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2253 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2254 ;; Garbage collect LFS pointers in repositories 2255 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2256 ;[cron.gc_lfs] 2257 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2258 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2259 ;ENABLED = false 2260 ;; Garbage collect LFS pointers in repositories (default false) 2261 ;RUN_AT_START = false 2262 ;; Interval as a duration between each gc run (default every 24h) 2263 ;SCHEDULE = @every 24h 2264 ;; Only attempt to garbage collect LFSMetaObjects older than this (default 7 days) 2265 ;OLDER_THAN = 168h 2266 ;; Only attempt to garbage collect LFSMetaObjects that have not been attempted to be garbage collected for this long (default 3 days) 2267 ;LAST_UPDATED_MORE_THAN_AGO = 72h 2268 ; Minimum number of stale LFSMetaObjects to check per repo. Set to `0` to always check all. 2269 ;NUMBER_TO_CHECK_PER_REPO = 100 2270 ;Check at least this proportion of LFSMetaObjects per repo. (This may cause all stale LFSMetaObjects to be checked.) 2271 ;PROPORTION_TO_CHECK_PER_REPO = 0.6 2272 2273 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2274 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2275 ;[mirror] 2276 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2277 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2278 ;; Enables the mirror functionality. Set to **false** to disable all mirrors. Pre-existing mirrors remain valid but won't be updated; may be converted to regular repo. 2279 ;ENABLED = true 2280 ;; Disable the creation of **new** pull mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`. 2281 ;DISABLE_NEW_PULL = false 2282 ;; Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`. 2283 ;DISABLE_NEW_PUSH = false 2284 ;; Default interval as a duration between each check 2285 ;DEFAULT_INTERVAL = 8h 2286 ;; Min interval as a duration must be > 1m 2287 ;MIN_INTERVAL = 10m 2288 2289 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2290 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2291 ;[api] 2292 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2293 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2294 ;; Enables the API documentation endpoints (/api/swagger, /api/v1/swagger, …). True or false. 2295 ;ENABLE_SWAGGER = true 2296 ;; Max number of items in a page 2297 ;MAX_RESPONSE_ITEMS = 50 2298 ;; Default paging number of api 2299 ;DEFAULT_PAGING_NUM = 30 2300 ;; Default and maximum number of items per page for git trees api 2301 ;DEFAULT_GIT_TREES_PER_PAGE = 1000 2302 ;; Default max size of a blob returned by the blobs API (default is 10MiB) 2303 ;DEFAULT_MAX_BLOB_SIZE = 10485760 2304 2305 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2306 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2307 ;[i18n] 2308 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2309 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2310 ;; The first locale will be used as the default if user browser's language doesn't match any locale in the list. 2311 ;LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sv-SE,ko-KR,el-GR,fa-IR,hu-HU,id-ID,ml-IN 2312 ;NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,Українська,日本語,Español,Português do Brasil,Português de Portugal,Polski,Български,Italiano,Suomi,Türkçe,Čeština,Српски,Svenska,한국어,Ελληνικά,فارسی,Magyar nyelv,Bahasa Indonesia,മലയാളം 2313 2314 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2315 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2316 ;[highlight.mapping] 2317 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2318 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2319 ;; Extension mapping to highlight class 2320 ;; e.g. .toml=ini 2321 2322 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2323 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2324 ;[other] 2325 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2326 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2327 ;; Show version information about Gitea and Go in the footer 2328 ;SHOW_FOOTER_VERSION = true 2329 ;; Show template execution time in the footer 2330 ;SHOW_FOOTER_TEMPLATE_LOAD_TIME = true 2331 ;; Show the "powered by" text in the footer 2332 ;SHOW_FOOTER_POWERED_BY = true 2333 ;; Generate sitemap. Defaults to `true`. 2334 ;ENABLE_SITEMAP = true 2335 ;; Enable/Disable RSS/Atom feed 2336 ;ENABLE_FEED = true 2337 2338 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2339 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2340 ;[markup] 2341 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2342 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2343 ;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits) 2344 ;MERMAID_MAX_SOURCE_CHARACTERS = 5000 2345 2346 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2347 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2348 ;[markup.sanitizer.1] 2349 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2350 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2351 ;; The following keys can appear once to define a sanitation policy rule. 2352 ;; This section can appear multiple times by adding a unique alphanumeric suffix to define multiple rules. 2353 ;; e.g., [markup.sanitizer.1] -> [markup.sanitizer.2] -> [markup.sanitizer.TeX] 2354 ;ELEMENT = span 2355 ;ALLOW_ATTR = class 2356 ;REGEXP = ^(info|warning|error)$ 2357 ;; 2358 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2359 ;; Other markup formats e.g. asciidoc 2360 ;; 2361 ;; uncomment and enable the below section. 2362 ;; (You can add other markup formats by copying the section and adjusting 2363 ;; the section name suffix "asciidoc" to something else.) 2364 ;[markup.asciidoc] 2365 ;ENABLED = false 2366 ;; List of file extensions that should be rendered by an external command 2367 ;FILE_EXTENSIONS = .adoc,.asciidoc 2368 ;; External command to render all matching extensions 2369 ;RENDER_COMMAND = "asciidoc --out-file=- -" 2370 ;; Don't pass the file on STDIN, pass the filename as argument instead. 2371 ;IS_INPUT_FILE = false 2372 ;; How the content will be rendered. 2373 ;; * sanitized: Sanitize the content and render it inside current page, default to only allow a few HTML tags and attributes. Customized sanitizer rules can be defined in [markup.sanitizer.*] . 2374 ;; * no-sanitizer: Disable the sanitizer and render the content inside current page. It's **insecure** and may lead to XSS attack if the content contains malicious code. 2375 ;; * iframe: Render the content in a separate standalone page and embed it into current page by iframe. The iframe is in sandbox mode with same-origin disabled, and the JS code are safely isolated from parent page. 2376 ;RENDER_CONTENT_MODE=sanitized 2377 2378 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2379 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2380 ;[metrics] 2381 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2382 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2383 ;; Enables metrics endpoint. True or false; default is false. 2384 ;ENABLED = false 2385 ;; If you want to add authorization, specify a token here 2386 ;TOKEN = 2387 ;; Enable issue by label metrics; default is false 2388 ;ENABLED_ISSUE_BY_LABEL = false 2389 ;; Enable issue by repository metrics; default is false 2390 ;ENABLED_ISSUE_BY_REPOSITORY = false 2391 2392 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2393 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2394 ;[migrations] 2395 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2396 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2397 ;; 2398 ;; Max attempts per http/https request on migrations. 2399 ;MAX_ATTEMPTS = 3 2400 ;; 2401 ;; Backoff time per http/https request retry (seconds) 2402 ;RETRY_BACKOFF = 3 2403 ;; 2404 ;; Allowed domains for migrating, default is blank. Blank means everything will be allowed. 2405 ;; Multiple domains could be separated by commas. 2406 ;; Wildcard is supported: "github.com, *.github.com" 2407 ;ALLOWED_DOMAINS = 2408 ;; 2409 ;; Blocklist for migrating, default is blank. Multiple domains could be separated by commas. 2410 ;; When ALLOWED_DOMAINS is not blank, this option has a higher priority to deny domains. 2411 ;; Wildcard is supported. 2412 ;BLOCKED_DOMAINS = 2413 ;; 2414 ;; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default) 2415 ;; If a domain is allowed by ALLOWED_DOMAINS, this option will be ignored. 2416 ;ALLOW_LOCALNETWORKS = false 2417 2418 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2419 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2420 ;[federation] 2421 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2422 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2423 ;; 2424 ;; Enable/Disable federation capabilities 2425 ;ENABLED = false 2426 ;; 2427 ;; Enable/Disable user statistics for nodeinfo if federation is enabled 2428 ;SHARE_USER_STATISTICS = true 2429 ;; 2430 ;; Maximum federation request and response size (MB) 2431 ;MAX_SIZE = 4 2432 ;; 2433 ;; WARNING: Changing the settings below can break federation. 2434 ;; 2435 ;; HTTP signature algorithms 2436 ;ALGORITHMS = rsa-sha256, rsa-sha512, ed25519 2437 ;; 2438 ;; HTTP signature digest algorithm 2439 ;DIGEST_ALGORITHM = SHA-256 2440 ;; 2441 ;; GET headers for federation requests 2442 ;GET_HEADERS = (request-target), Date 2443 ;; 2444 ;; POST headers for federation requests 2445 ;POST_HEADERS = (request-target), Date, Digest 2446 2447 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2448 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2449 ;[packages] 2450 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2451 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2452 ;; 2453 ;; Enable/Disable package registry capabilities 2454 ;ENABLED = true 2455 ;; 2456 ;STORAGE_TYPE = local 2457 ;; override the minio base path if storage type is minio 2458 ;MINIO_BASE_PATH = packages/ 2459 ;; 2460 ;; Path for chunked uploads. Defaults to APP_DATA_PATH + `tmp/package-upload` 2461 ;CHUNKED_UPLOAD_PATH = tmp/package-upload 2462 ;; 2463 ;; Maximum count of package versions a single owner can have (`-1` means no limits) 2464 ;LIMIT_TOTAL_OWNER_COUNT = -1 2465 ;; Maximum size of packages a single owner can use (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2466 ;LIMIT_TOTAL_OWNER_SIZE = -1 2467 ;; Maximum size of an Alpine upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2468 ;LIMIT_SIZE_ALPINE = -1 2469 ;; Maximum size of a Cargo upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2470 ;LIMIT_SIZE_CARGO = -1 2471 ;; Maximum size of a Chef upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2472 ;LIMIT_SIZE_CHEF = -1 2473 ;; Maximum size of a Composer upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2474 ;LIMIT_SIZE_COMPOSER = -1 2475 ;; Maximum size of a Conan upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2476 ;LIMIT_SIZE_CONAN = -1 2477 ;; Maximum size of a Conda upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2478 ;LIMIT_SIZE_CONDA = -1 2479 ;; Maximum size of a Container upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2480 ;LIMIT_SIZE_CONTAINER = -1 2481 ;; Maximum size of a CRAN upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2482 ;LIMIT_SIZE_CRAN = -1 2483 ;; Maximum size of a Debian upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2484 ;LIMIT_SIZE_DEBIAN = -1 2485 ;; Maximum size of a Generic upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2486 ;LIMIT_SIZE_GENERIC = -1 2487 ;; Maximum size of a Go upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2488 ;LIMIT_SIZE_GO = -1 2489 ;; Maximum size of a Helm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2490 ;LIMIT_SIZE_HELM = -1 2491 ;; Maximum size of a Maven upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2492 ;LIMIT_SIZE_MAVEN = -1 2493 ;; Maximum size of a npm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2494 ;LIMIT_SIZE_NPM = -1 2495 ;; Maximum size of a NuGet upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2496 ;LIMIT_SIZE_NUGET = -1 2497 ;; Maximum size of a Pub upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2498 ;LIMIT_SIZE_PUB = -1 2499 ;; Maximum size of a PyPI upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2500 ;LIMIT_SIZE_PYPI = -1 2501 ;; Maximum size of a RPM upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2502 ;LIMIT_SIZE_RPM = -1 2503 ;; Maximum size of a RubyGems upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2504 ;LIMIT_SIZE_RUBYGEMS = -1 2505 ;; Maximum size of a Swift upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2506 ;LIMIT_SIZE_SWIFT = -1 2507 ;; Maximum size of a Vagrant upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) 2508 ;LIMIT_SIZE_VAGRANT = -1 2509 2510 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2511 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2512 ;; default storage for attachments, lfs and avatars 2513 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2514 ;[storage] 2515 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2516 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2517 ;; storage type 2518 ;STORAGE_TYPE = local 2519 2520 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2521 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2522 ;; repo-archive storage will override storage 2523 ;; 2524 ;[repo-archive] 2525 ;STORAGE_TYPE = local 2526 ;; 2527 ;; Where your lfs files reside, default is data/lfs. 2528 ;PATH = data/repo-archive 2529 ;; 2530 ;; override the minio base path if storage type is minio 2531 ;MINIO_BASE_PATH = repo-archive/ 2532 2533 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2534 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2535 ;; settings for repository archives, will override storage setting 2536 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2537 ;[storage.repo-archive] 2538 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2539 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2540 ;; storage type 2541 ;STORAGE_TYPE = local 2542 2543 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2544 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2545 ;; lfs storage will override storage 2546 ;; 2547 ;[lfs] 2548 ;STORAGE_TYPE = local 2549 ;; 2550 ;; Where your lfs files reside, default is data/lfs. 2551 ;PATH = data/lfs 2552 ;; 2553 ;; override the minio base path if storage type is minio 2554 ;MINIO_BASE_PATH = lfs/ 2555 2556 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2557 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2558 ;; settings for packages, will override storage setting 2559 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2560 ;[storage.packages] 2561 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2562 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2563 ;; storage type 2564 ;STORAGE_TYPE = local 2565 2566 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2567 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2568 ;; customize storage 2569 ;[storage.my_minio] 2570 ;STORAGE_TYPE = minio 2571 ;; 2572 ;; Minio endpoint to connect only available when STORAGE_TYPE is `minio` 2573 ;MINIO_ENDPOINT = localhost:9000 2574 ;; 2575 ;; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio` 2576 ;MINIO_ACCESS_KEY_ID = 2577 ;; 2578 ;; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio` 2579 ;MINIO_SECRET_ACCESS_KEY = 2580 ;; 2581 ;; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio` 2582 ;MINIO_BUCKET = gitea 2583 ;; 2584 ;; Minio location to create bucket only available when STORAGE_TYPE is `minio` 2585 ;MINIO_LOCATION = us-east-1 2586 ;; 2587 ;; Minio enabled ssl only available when STORAGE_TYPE is `minio` 2588 ;MINIO_USE_SSL = false 2589 ;; 2590 ;; Minio skip SSL verification available when STORAGE_TYPE is `minio` 2591 ;MINIO_INSECURE_SKIP_VERIFY = false 2592 2593 ;[proxy] 2594 ;; Enable the proxy, all requests to external via HTTP will be affected 2595 ;PROXY_ENABLED = false 2596 ;; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy/no_proxy 2597 ;PROXY_URL = 2598 ;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts. 2599 ;PROXY_HOSTS = 2600 2601 ; [actions] 2602 ;; Enable/Disable actions capabilities 2603 ;ENABLED = true 2604 ;; 2605 ;; Default platform to get action plugins, `github` for `https://github.com`, `self` for the current Gitea instance. 2606 ;DEFAULT_ACTIONS_URL = github 2607 ;; Default artifact retention time in days. Artifacts could have their own retention periods by setting the `retention-days` option in `actions/upload-artifact` step. 2608 ;ARTIFACT_RETENTION_DAYS = 90 2609 ;; Timeout to stop the task which have running status, but haven't been updated for a long time 2610 ;ZOMBIE_TASK_TIMEOUT = 10m 2611 ;; Timeout to stop the tasks which have running status and continuous updates, but don't end for a long time 2612 ;ENDLESS_TASK_TIMEOUT = 3h 2613 ;; Timeout to cancel the jobs which have waiting status, but haven't been picked by a runner for a long time 2614 ;ABANDONED_JOB_TIMEOUT = 24h 2615 ;; Strings committers can place inside a commit message or PR title to skip executing the corresponding actions workflow 2616 ;SKIP_WORKFLOW_STRINGS = [skip ci],[ci skip],[no ci],[skip actions],[actions skip] 2617 2618 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2619 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2620 ;; settings for action logs, will override storage setting 2621 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2622 ;[storage.actions_log] 2623 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2624 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2625 ;; storage type 2626 ;STORAGE_TYPE = local