2017-11-26 22:44:32 +01:00
|
|
|
---
|
|
|
|
date: "2016-12-26T16:00:00+02:00"
|
|
|
|
title: "Config Cheat Sheet"
|
|
|
|
slug: "config-cheat-sheet"
|
|
|
|
weight: 20
|
|
|
|
toc: false
|
|
|
|
draft: false
|
|
|
|
menu:
|
|
|
|
sidebar:
|
|
|
|
parent: "advanced"
|
|
|
|
name: "Config Cheat Sheet"
|
|
|
|
weight: 20
|
|
|
|
identifier: "config-cheat-sheet"
|
|
|
|
---
|
|
|
|
|
|
|
|
# Configuration Cheat Sheet
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
This is a cheat sheet for the Gitea configuration file. It contains most settings
|
|
|
|
that can configured as well as their default values.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
Any changes to the Gitea configuration file should be made in `custom/conf/app.ini`
|
|
|
|
or any corresponding location. When installing from a distribution, this will
|
|
|
|
typically be found at `/etc/gitea/conf/app.ini`.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
The defaults provided here are best-effort (not built automatically). They are
|
|
|
|
accurately recorded in [app.ini.sample](https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample)
|
2018-02-08 04:29:42 +01:00
|
|
|
(s/master/\<tag|release\>). Any string in the format `%(X)s` is a feature powered
|
2018-01-08 23:48:42 +01:00
|
|
|
by [ini](https://github.com/go-ini/ini/#recursive-values), for reading values recursively.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
**Note:** A full restart is required for Gitea configuration changes to take effect.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Overall (`DEFAULT`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `APP_NAME`: **Gitea: Git with a cup of tea**: Application name, used in the page title.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `RUN_USER`: **git**: The user Gitea will run as. This should be a dedicated system
|
|
|
|
(non-user) account. Setting this incorrectly will cause Gitea to not start.
|
|
|
|
- `RUN_MODE`: **dev**: For performance and other purposes, change this to `prod` when
|
|
|
|
deployed to a production environment. The installation process will set this to `prod`
|
|
|
|
automatically. \[prod, dev, test\]
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Repository (`repository`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ROOT`: **~/gitea-repositories/**: Root path for storing all repository data. It must be
|
|
|
|
an absolute path.
|
|
|
|
- `SCRIPT_TYPE`: **bash**: The script type this server supports, usually this is `bash`,
|
|
|
|
but some users report that only `sh` is available.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ANSI_CHARSET`: **\<empty\>**: The default charset for an unrecognized charset.
|
|
|
|
- `FORCE_PRIVATE`: **false**: Force every new repository to be private.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `DEFAULT_PRIVATE`: **last**: Default private when creating a new repository.
|
|
|
|
\[last, private, public\]
|
|
|
|
- `MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per user,
|
|
|
|
`-1` means no limit.
|
|
|
|
- `PULL_REQUEST_QUEUE_LENGTH`: **1000**: Length of pull request patch test queue, make it
|
|
|
|
as large as possible. Use caution when editing this value.
|
|
|
|
- `MIRROR_QUEUE_LENGTH`: **1000**: Patch test queue length, increase if pull request patch
|
|
|
|
testing starts hanging.
|
|
|
|
- `PREFERRED_LICENSES`: **Apache License 2.0,MIT License**: Preferred Licenses to place at
|
|
|
|
the top of the list. Name must match file name in conf/license or custom/conf/license.
|
|
|
|
- `DISABLE_HTTP_GIT`: **false**: Disable the ability to interact with repositories over the
|
|
|
|
HTTP protocol.
|
|
|
|
- `USE_COMPAT_SSH_URI`: **false**: Force ssh:// clone url instead of scp-style uri when
|
|
|
|
default SSH port is used.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## UI (`ui`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `EXPLORE_PAGING_NUM`: **20**: Number of repositories that are shown in one explore page.
|
|
|
|
- `ISSUE_PAGING_NUM`: **10**: Number of issues that are shown in one page (for all pages that list issues).
|
|
|
|
- `FEED_MAX_COMMIT_NUM`: **5**: Number of maximum commits shown in one activity feed.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
### UI - Admin (`ui.admin`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `USER_PAGING_NUM`: **50**: Number of users that are shown in one page.
|
|
|
|
- `REPO_PAGING_NUM`: **50**: Number of repos that are shown in one page.
|
|
|
|
- `NOTICE_PAGING_NUM`: **25**: Number of notices that are shown in one page.
|
|
|
|
- `ORG_PAGING_NUM`: **50**: Number of organizations that are shown in one page.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Markdown (`markdown`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ENABLE_HARD_LINE_BREAK`: **false**: Enable Markdown's hard line break extension.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Server (`server`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `PROTOCOL`: **http**: \[http, https, fcgi, unix\]
|
|
|
|
- `DOMAIN`: **localhost**: Domain name of this server.
|
2018-04-04 23:08:55 +02:00
|
|
|
- `ROOT_URL`: **%(PROTOCOL)s://%(DOMAIN)s:%(HTTP\_PORT)s/**:
|
|
|
|
Overwrite the automatically generated public URL.
|
|
|
|
This is useful if the internal and the external URL don't match (e.g. in Docker).
|
2018-01-06 21:15:14 +01:00
|
|
|
- `HTTP_ADDR`: **0.0.0.0**: HTTP listen address.
|
2018-01-08 23:48:42 +01:00
|
|
|
- If `PROTOCOL` is set to `fcgi`, Gitea will listen for FastCGI requests on TCP socket
|
|
|
|
defined by `HTTP_ADDR` and `HTTP_PORT` configuration settings.
|
2018-01-06 21:15:14 +01:00
|
|
|
- If `PROTOCOL` is set to `unix`, this should be the name of the Unix socket file to use.
|
|
|
|
- `HTTP_PORT`: **3000**: HTTP listen port.
|
2018-01-08 23:48:42 +01:00
|
|
|
- If `PROTOCOL` is set to `fcgi`, Gitea will listen for FastCGI requests on TCP socket
|
|
|
|
defined by `HTTP_ADDR` and `HTTP_PORT` configuration settings.
|
|
|
|
- `UNIX_SOCKET_PERMISSION`: **666**: Permissions for the Unix socket.
|
|
|
|
- `DISABLE_SSH`: **false**: Disable SSH feature when it's not available.
|
|
|
|
- `START_SSH_SERVER`: **false**: When enabled, use the built-in SSH server.
|
|
|
|
- `SSH_DOMAIN`: **%(DOMAIN)s**: Domain name of this server, used for displayed clone URL.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `SSH_PORT`: **22**: SSH port displayed in clone URL.
|
|
|
|
- `SSH_LISTEN_PORT`: **%(SSH\_PORT)s**: Port for the built-in SSH server.
|
|
|
|
- `OFFLINE_MODE`: **false**: Disables use of CDN for static files and Gravatar for profile pictures.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `DISABLE_ROUTER_LOG`: **false**: Mute printing of the router log.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `CERT_FILE`: **custom/https/cert.pem**: Cert file path used for HTTPS.
|
|
|
|
- `KEY_FILE`: **custom/https/key.pem**: Key file path used for HTTPS.
|
|
|
|
- `STATIC_ROOT_PATH`: **./**: Upper level of template and static files path.
|
|
|
|
- `ENABLE_GZIP`: **false**: Enables application-level GZIP support.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `LANDING_PAGE`: **home**: Landing page for unauthenticated users \[home, explore\].
|
2018-01-06 21:15:14 +01:00
|
|
|
- `LFS_START_SERVER`: **false**: Enables git-lfs support.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `LFS_CONTENT_PATH`: **./data/lfs**: Where to store LFS files.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `LFS_JWT_SECRET`: **\<empty\>**: LFS authentication secret, change this a unique string.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `REDIRECT_OTHER_PORT`: **false**: If true and `PROTOCOL` is https, redirects http requests
|
|
|
|
on another (https) port.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `PORT_TO_REDIRECT`: **80**: Port used when `REDIRECT_OTHER_PORT` is true.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Database (`database`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `DB_TYPE`: **mysql**: The database type in use \[mysql, postgres, mssql, sqlite3\].
|
2018-01-06 21:15:14 +01:00
|
|
|
- `HOST`: **127.0.0.1:3306**: Database host address and port.
|
|
|
|
- `NAME`: **gitea**: Database name.
|
|
|
|
- `USER`: **root**: Database username.
|
2018-02-08 04:29:42 +01:00
|
|
|
- `PASSWD`: **\<empty\>**: Database user password. Use \`your password\` for quoting if you use special characters in the password.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `SSL_MODE`: **disable**: For PostgreSQL only.
|
|
|
|
- `PATH`: **data/gitea.db**: For SQLite3 only, the database file path.
|
2018-03-30 16:49:46 +02:00
|
|
|
- `LOG_SQL`: **true**: Log the executed SQL.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
2018-01-08 06:03:52 +01:00
|
|
|
## Indexer (`indexer`)
|
|
|
|
|
|
|
|
- `ISSUE_INDEXER_PATH`: **indexers/issues.bleve**: Index file used for issue search.
|
|
|
|
- `REPO_INDEXER_ENABLED`: **false**: Enables code search (uses a lot of disk space).
|
|
|
|
- `REPO_INDEXER_PATH`: **indexers/repos.bleve**: Index file used for code search.
|
|
|
|
- `UPDATE_BUFFER_LEN`: **20**: Buffer length of index request.
|
2018-02-08 03:10:36 +01:00
|
|
|
- `MAX_FILE_SIZE`: **1048576**: Maximum size in bytes of files to be indexed.
|
2018-01-08 06:03:52 +01:00
|
|
|
|
2017-11-26 22:44:32 +01:00
|
|
|
## Security (`security`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `INSTALL_LOCK`: **false**: Disallow access to the install page.
|
|
|
|
- `SECRET_KEY`: **\<random at every install\>**: Global secret key. This should be changed.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `LOGIN_REMEMBER_DAYS`: **7**: Cookie lifetime, in days.
|
|
|
|
- `COOKIE_USERNAME`: **gitea\_awesome**: Name of the cookie used to store the current username.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `COOKIE_REMEMBER_NAME`: **gitea\_incredible**: Name of cookie used to store authentication
|
|
|
|
information.
|
|
|
|
- `REVERSE_PROXY_AUTHENTICATION_USER`: **X-WEBAUTH-USER**: Header name for reverse proxy
|
|
|
|
authentication.
|
|
|
|
- `DISABLE_GIT_HOOKS`: **false**: Prevent all users (including admin) from creating custom
|
|
|
|
git hooks.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## OpenID (`openid`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLE_OPENID_SIGNIN`: **false**: Allow authentication in via OpenID.
|
|
|
|
- `ENABLE_OPENID_SIGNUP`: **! DISABLE\_REGISTRATION**: Allow registering via OpenID.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `WHITELISTED_URIS`: **\<empty\>**: If non-empty, list of POSIX regex patterns matching
|
|
|
|
OpenID URI's to permit.
|
|
|
|
- `BLACKLISTED_URIS`: **\<empty\>**: If non-empty, list of POSIX regex patterns matching
|
|
|
|
OpenID URI's to block.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Service (`service`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ACTIVE_CODE_LIVE_MINUTES`: **180**: Time limit (min) to confirm account/email registration.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `RESET_PASSWD_CODE_LIVE_MINUTES`: **180**: Time limit (min) to confirm forgot password reset
|
|
|
|
process.
|
|
|
|
- `REGISTER_EMAIL_CONFIRM`: **false**: Enable this to ask for mail confirmation of registration.
|
|
|
|
Requires `Mailer` to be enabled.
|
|
|
|
- `DISABLE_REGISTRATION`: **false**: Disable registration, after which only admin can create
|
|
|
|
accounts for users.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ENABLE_NOTIFY_MAIL`: **false**: Enable this to send e-mail to watchers of a repository when
|
|
|
|
something happens, like creating issues. Requires `Mailer` to be enabled.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLE_REVERSE_PROXY_AUTHENTICATION`: **false**: Enable this to allow reverse proxy authentication.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ENABLE_REVERSE_PROXY_AUTO_REGISTRATION`: **false**: Enable this to allow auto-registration
|
|
|
|
for reverse authentication.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLE_CAPTCHA`: **true**: Enable this to use captcha validation for registration.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Webhook (`webhook`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `QUEUE_LENGTH`: **1000**: Hook task queue length. Use caution when editing this value.
|
|
|
|
- `DELIVER_TIMEOUT`: **5**: Delivery timeout (sec) for shooting webhooks.
|
|
|
|
- `SKIP_TLS_VERIFY`: **false**: Allow insecure certification.
|
|
|
|
- `PAGING_NUM`: **10**: Number of webhook history events that are shown in one page.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Mailer (`mailer`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLED`: **false**: Enable to use a mail service.
|
|
|
|
- `DISABLE_HELO`: **\<empty\>**: Disable HELO operation.
|
|
|
|
- `HELO_HOSTNAME`: **\<empty\>**: Custom hostname for HELO operation.
|
|
|
|
- `HOST`: **\<empty\>**: SMTP mail host address and port (example: smtp.gitea.io:587).
|
2018-01-08 23:48:42 +01:00
|
|
|
- `FROM`: **\<empty\>**: Mail from address, RFC 5322. This can be just an email address, or
|
|
|
|
the "Name" \<email@example.com\> format.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `USER`: **\<empty\>**: Username of mailing user (usually the sender's e-mail address).
|
2018-01-27 19:35:49 +01:00
|
|
|
- `PASSWD`: **\<empty\>**: Password of mailing user. Use \`your password\` for quoting if you use special characters in the password.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `SKIP_VERIFY`: **\<empty\>**: Do not verify the self-signed certificates.
|
|
|
|
- **Note:** Gitea only supports SMTP with STARTTLS.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `USE_SENDMAIL`: **false** Use the operating system's `sendmail` command instead of SMTP.
|
|
|
|
This is common on linux systems.
|
|
|
|
- Note that enabling sendmail will ignore all other `mailer` settings except `ENABLED`,
|
|
|
|
`FROM` and `SENDMAIL_PATH`.
|
|
|
|
- `SENDMAIL_PATH`: **sendmail**: The location of sendmail on the operating system. (can be
|
|
|
|
command or full path)
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Cache (`cache`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ADAPTER`: **memory**: Cache engine adapter, either `memory`, `redis`, or `memcache`.
|
|
|
|
- To use `redis` or `memcache`, be sure to rebuild everything with build tags `redis` or
|
|
|
|
`memcache`: `go build -tags='redis'`.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `INTERVAL`: **60**: Garbage Collection interval (sec), for memory cache only.
|
|
|
|
- `HOST`: **\<empty\>**: Connection string for `redis` and `memcache`.
|
2018-01-08 23:48:42 +01:00
|
|
|
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
|
|
|
|
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Session (`session`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `PROVIDER`: **memory**: Session engine provider \[memory, file, redis, mysql\].
|
2018-01-06 21:15:14 +01:00
|
|
|
- `PROVIDER_CONFIG`: **data/sessions**: For file, the root path; for others, the connection string.
|
|
|
|
- `COOKIE_SECURE`: **false**: Enable this to force using HTTPS for all session access.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `COOKIE_NAME`: **i\_like\_gitea**: The name of the cookie used for the session ID.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `GC_INTERVAL_TIME`: **86400**: GC interval in seconds.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Picture (`picture`)
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- `GRAVATAR_SOURCE`: **gravatar**: Can be `gravatar`, `duoshuo` or anything like
|
|
|
|
`http://cn.gravatar.com/avatar/`.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `DISABLE_GRAVATAR`: **false**: Enable this to use local avatars only.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ENABLE_FEDERATED_AVATAR`: **false**: Enable support for federated avatars (see
|
|
|
|
http://www.libravatar.org)
|
2018-01-06 21:15:14 +01:00
|
|
|
- `AVATAR_UPLOAD_PATH`: **data/avatars**: Path to store local and cached files.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Attachment (`attachment`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLED`: **true**: Enable this to allow uploading attachments.
|
|
|
|
- `PATH`: **data/attachments**: Path to store attachments.
|
2018-01-08 23:48:42 +01:00
|
|
|
- `ALLOWED_TYPES`: **see app.ini.sample**: Allowed MIME types, e.g. `image/jpeg|image/png`.
|
|
|
|
Use `*/*` for all types.
|
2018-01-06 21:15:14 +01:00
|
|
|
- `MAX_SIZE`: **4**: Maximum size (MB).
|
|
|
|
- `MAX_FILES`: **5**: Maximum number of attachments that can be uploaded at once.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Log (`log`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ROOT_PATH`: **\<empty\>**: Root path for log files.
|
|
|
|
- `MODE`: **console**: Logging mode. For multiple modes, use a comma to separate values.
|
|
|
|
- `LEVEL`: **Trace**: General log level. \[Trace, Debug, Info, Warn, Error, Critical\]
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Cron (`cron`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLED`: **true**: Run cron tasks periodically.
|
|
|
|
- `RUN_AT_START`: **false**: Run cron tasks at application start-up.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
2017-12-17 15:37:34 +01:00
|
|
|
### Cron - Cleanup old repository archives (`cron.archive_cleanup`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `ENABLED`: **true**: Enable service.
|
|
|
|
- `RUN_AT_START`: **true**: Run tasks at start up time (if ENABLED).
|
|
|
|
- `SCHEDULE`: **@every 24h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
|
|
|
- `OLDER_THAN`: **24h**: Archives created more than `OLDER_THAN` ago are subject to deletion, e.g. `12h`.
|
2017-12-17 15:37:34 +01:00
|
|
|
|
2017-11-26 22:44:32 +01:00
|
|
|
### Cron - Update Mirrors (`cron.update_mirrors`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `SCHEDULE`: **@every 10m**: Cron syntax for scheduling update mirrors, e.g. `@every 3h`.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
### Cron - Repository Health Check (`cron.repo_health_check`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `SCHEDULE`: **every 24h**: Cron syntax for scheduling repository health check.
|
|
|
|
- `TIMEOUT`: **60s**: Time duration syntax for health check execution timeout.
|
|
|
|
- `ARGS`: **\<empty\>**: Arguments for command `git fsck`, e.g. `--unreachable --tags`.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
### Cron - Repository Statistics Check (`cron.check_repo_stats`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `RUN_AT_START`: **true**: Run repository statistics check at start time.
|
|
|
|
- `SCHEDULE`: **@every 24h**: Cron syntax for scheduling repository statistics check.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
|
|
|
## Git (`git`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `MAX_GIT_DIFF_LINES`: **100**: Max number of lines allowed of a single file in diff view.
|
|
|
|
- `MAX_GIT_DIFF_LINE_CHARACTERS`: **5000**: Max character count per line highlighted in diff view.
|
|
|
|
- `MAX_GIT_DIFF_FILES`: **100**: Max number of files shown in diff view.
|
|
|
|
- `GC_ARGS`: **\<empty\>**: Arguments for command `git gc`, e.g. `--aggressive --auto`.
|
2017-11-26 22:44:32 +01:00
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
## Markup (`markup`)
|
2018-01-06 12:28:31 +01:00
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
Gitea can support Markup using external tools. The example below will add a markup named `asciidoc`.
|
2018-01-06 12:28:31 +01:00
|
|
|
|
|
|
|
```ini
|
|
|
|
[markup.asciidoc]
|
|
|
|
ENABLED = false
|
|
|
|
FILE_EXTENSIONS = .adoc,.asciidoc
|
|
|
|
RENDER_COMMAND = "asciidoc --out-file=- -"
|
|
|
|
IS_INPUT_FILE = false
|
|
|
|
```
|
|
|
|
|
2018-01-08 23:48:42 +01:00
|
|
|
- ENABLED: **false** Enable markup support.
|
|
|
|
- FILE\_EXTENSIONS: **\<empty\>** List of file extensions that should be rendered by an external
|
|
|
|
command. Multiple extentions needs a comma as splitter.
|
|
|
|
- RENDER\_COMMAND: External command to render all matching extensions.
|
|
|
|
- IS\_INPUT\_FILE: **false** Input is not a standard input but a file param followed `RENDER_COMMAND`.
|
2018-01-06 12:28:31 +01:00
|
|
|
|
2017-11-26 22:44:32 +01:00
|
|
|
## Other (`other`)
|
|
|
|
|
2018-01-06 21:15:14 +01:00
|
|
|
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
|
|
|
|
- `SHOW_FOOTER_VERSION`: **true**: Show Gitea version information in the footer.
|
|
|
|
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.
|