app.ini 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. # !!! NEVER EVER MODIFY THIS FILE !!!
  2. # !!! PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE !!!
  3. # !!! IF YOU ARE PACKAGING PROVIDER, PLEASE MAKE OWN COPY OF IT !!!
  4. ; The brand name of the application, can be your company or team name.
  5. BRAND_NAME = Gogs
  6. ; The system user who should be running the applications. It has no effect on Windows,
  7. ; otherwise, it should match the value of $USER environment variable.
  8. RUN_USER = git
  9. ; The running mode of the application, can be either "dev", "prod" or "test".
  10. RUN_MODE = dev
  11. [server]
  12. ; The public-facing URL for the application.
  13. EXTERNAL_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
  14. ; The public-facing domain name for the application.
  15. DOMAIN = localhost
  16. ; The protocol that is used to serve direct traffic to the application.
  17. ; Currently supports "http", "https", "fcgi" and "unix".
  18. PROTOCOL = http
  19. ; The address to be listened by the application.
  20. HTTP_ADDR = 0.0.0.0
  21. ; The port number to be listened by the application.
  22. HTTP_PORT = 3000
  23. ; Generate steps:
  24. ; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
  25. ;
  26. ; Or from a .pfx file exported from the Windows certificate store (do
  27. ; not forget to export the private key):
  28. ; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
  29. ; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
  30. CERT_FILE = custom/https/cert.pem
  31. KEY_FILE = custom/https/key.pem
  32. ; The minimum allowed TLS version, currently supports "TLS10", "TLS11", "TLS12", and "TLS13".
  33. TLS_MIN_VERSION = TLS12
  34. ; File permission when serve traffic via Unix domain socket.
  35. UNIX_SOCKET_PERMISSION = 666
  36. ; Local (DMZ) URL for workers (e.g. SSH update) accessing web service.
  37. ; In most cases you do not need to change the default value.
  38. ; Alter it only if your SSH server node is not the same as HTTP node.
  39. LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
  40. ; Whether to disable using CDN for static files regardless.
  41. OFFLINE_MODE = false
  42. ; Whether to disable logging in router.
  43. DISABLE_ROUTER_LOG = true
  44. ; Whether to enable application level GZIP compression.
  45. ENABLE_GZIP = false
  46. ; The path for storing application specific data.
  47. APP_DATA_PATH = data
  48. ; Whether to enable to load assets (i.e. "conf", "templates", "public") from disk instead of embedded bindata.
  49. LOAD_ASSETS_FROM_DISK = false
  50. ; The landing page URL for anonymous users, the value should not include
  51. ; subpath that is handled by the reverse proxy.
  52. LANDING_URL = /
  53. ; Whether to disable SSH access to the application entirely.
  54. DISABLE_SSH = false
  55. ; The domain name to be exposed in SSH clone URL.
  56. SSH_DOMAIN = %(DOMAIN)s
  57. ; The port number to be exposed in SSH clone URL.
  58. SSH_PORT = 22
  59. ; The path of SSH root directory, default is "$HOME/.ssh".
  60. SSH_ROOT_PATH =
  61. ; The path to ssh-keygen, default is "ssh-keygen" and let shell find out which one to call.
  62. SSH_KEYGEN_PATH = ssh-keygen
  63. ; The directory to create temporary files when test a public key using ssh-keygen,
  64. ; default is the system temporary directory.
  65. SSH_KEY_TEST_PATH =
  66. ; Whether to check minimum public key size with corresponding type.
  67. MINIMUM_KEY_SIZE_CHECK = false
  68. ; Whether to rewrite "~/.ssh/authorized_keys" file at start, ignored when use builtin SSH server.
  69. REWRITE_AUTHORIZED_KEYS_AT_START = false
  70. ; Whether to start a builtin SSH server.
  71. START_SSH_SERVER = false
  72. ; The network interface for builtin SSH server to listen on.
  73. SSH_LISTEN_HOST = 0.0.0.0
  74. ; The port number for builtin SSH server to listen on.
  75. SSH_LISTEN_PORT = %(SSH_PORT)s
  76. ; The list of accepted ciphers for connections to builtin SSH server.
  77. SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
  78. ; The list of accepted MACs for connections to builtin SSH server.
  79. SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1
  80. ; The list of accepted key exchange algorithms for connections to builtin SSH server.
  81. SSH_SERVER_ALGORITHMS = rsa, ecdsa, ed25519
  82. ; Define allowed algorithms and their minimum key length (use -1 to disable a type).
  83. [ssh.minimum_key_sizes]
  84. ED25519 = 256
  85. ECDSA = 256
  86. RSA = 2048
  87. DSA = 1024
  88. [repository]
  89. ; The root path for storing managed repositories, default is "~/gogs-repositories"
  90. ROOT =
  91. ; The script type server supports, sometimes could be "sh".
  92. SCRIPT_TYPE = bash
  93. ; Default ANSI charset for an unrecognized charset.
  94. ANSI_CHARSET =
  95. ; Whether to force every new repository to be private.
  96. FORCE_PRIVATE = false
  97. ; The global limit of number of repositories a user can create, -1 means no limit.
  98. MAX_CREATION_LIMIT = -1
  99. ; Preferred Licenses to place at the top of the list.
  100. ; Name must match file name in "conf/license" or "custom/conf/license".
  101. PREFERRED_LICENSES = Apache License 2.0, MIT License
  102. ; Whether to disable Git interaction with repositories via HTTP/HTTPS protocol.
  103. DISABLE_HTTP_GIT = false
  104. ; Whether to enable ability to migrate repository by server local path.
  105. ENABLE_LOCAL_PATH_MIGRATION = false
  106. ; Whether to enable render mode for raw file. There are potential security risks.
  107. ENABLE_RAW_FILE_RENDER_MODE = false
  108. ; The maximum number of goroutines that can be run at the same time for a single
  109. ; fetch request. Usually, the value depend of how many CPU (cores) you have. If
  110. ; the value is non-positive, it matches the number of CPUs available to the application.
  111. COMMITS_FETCH_CONCURRENCY = 0
  112. ; Default branch name when creating new repositories.
  113. DEFAULT_BRANCH = master
  114. [repository.editor]
  115. ; List of file extensions that should have line wraps in the CodeMirror editor.
  116. ; Separate extensions with a comma.
  117. LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd
  118. ; Valid file modes that have a preview API associated with them, such as "/api/v1/markdown".
  119. ; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match.
  120. PREVIEWABLE_FILE_MODES = markdown
  121. [repository.upload]
  122. ; Whether to enable repository file uploads.
  123. ENABLED = true
  124. ; The path to temporarily store uploads (content under this path gets wiped out on every start).
  125. TEMP_PATH = data/tmp/uploads
  126. ; File types that are allowed to be uploaded, e.g. "image/jpeg|image/png". Leave empty to allow any file type.
  127. ALLOWED_TYPES =
  128. ; The maximum size of each file in MB.
  129. FILE_MAX_SIZE = 3
  130. ; The maximum number of files per upload.
  131. MAX_FILES = 5
  132. [database]
  133. ; The database backend, either "postgres", "mysql" "sqlite3" or "mssql".
  134. ; You can connect to TiDB with MySQL protocol.
  135. TYPE = postgres
  136. HOST = 127.0.0.1:5432
  137. NAME = gogs
  138. USER = gogs
  139. PASSWORD =
  140. ; For "postgres" only
  141. SCHEMA = public
  142. ; For "postgres" only, either "disable", "require" or "verify-full".
  143. SSL_MODE = disable
  144. ; For "sqlite3" only, make sure to use absolute path.
  145. PATH = data/gogs.db
  146. ; The maximum open connections of the pool.
  147. MAX_OPEN_CONNS = 30
  148. ; The maximum idle connections of the pool.
  149. MAX_IDLE_CONNS = 30
  150. [security]
  151. ; Whether to show the install page, set this to "true" to bypass it.
  152. INSTALL_LOCK = false
  153. ; The secret to encrypt cookie values, 2FA code, etc.
  154. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  155. SECRET_KEY = !#@FDEWREWR&*(
  156. ; The days remembered for auto-login.
  157. LOGIN_REMEMBER_DAYS = 7
  158. ; The cookie name to store auto-login information.
  159. COOKIE_REMEMBER_NAME = gogs_incredible
  160. ; The cookie name to store logged in username.
  161. COOKIE_USERNAME = gogs_awesome
  162. ; Whether to set secure cookie.
  163. COOKIE_SECURE = false
  164. ; Whether to set cookie to indicate user login status.
  165. ENABLE_LOGIN_STATUS_COOKIE = false
  166. ; The cookie name to store user login status.
  167. LOGIN_STATUS_COOKIE_NAME = login_status
  168. ; A comma separated list of hostnames that are explicitly allowed to be accessed within the local network.
  169. ; Use "*" to allow all hostnames.
  170. LOCAL_NETWORK_ALLOWLIST =
  171. [email]
  172. ; Whether to enable the email service.
  173. ENABLED = false
  174. ; The prefix prepended to the subject line.
  175. SUBJECT_PREFIX = `[%(BRAND_NAME)s] `
  176. ; The SMTP server with its port, e.g. smtp.mailgun.org:587, smtp.gmail.com:587, smtp.qq.com:465
  177. ; If the port ends is "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409.
  178. ; If the server supports STARTTLS it will always be used.
  179. HOST = smtp.mailgun.org:587
  180. ; The email from address (RFC 5322). This can be just an email address, or the `"Name" <email@example.com>` format.
  181. FROM = noreply@gogs.localhost
  182. ; The login user.
  183. USER = noreply@gogs.localhost
  184. ; The login password.
  185. PASSWORD =
  186. ; Whether to disable HELO operation when the hostname is different.
  187. DISABLE_HELO =
  188. ; The custom hostname for HELO operation, default is from system.
  189. HELO_HOSTNAME =
  190. ; Whether to skip verifying the certificate of the server. Only use this for self-signed certificates.
  191. SKIP_VERIFY = false
  192. ; Whether to use client certificates.
  193. USE_CERTIFICATE = false
  194. CERT_FILE = custom/email/cert.pem
  195. KEY_FILE = custom/email/key.pem
  196. ; Whether to use "text/plain" as content format.
  197. USE_PLAIN_TEXT = false
  198. ; Whether to attach a plaintext alternative to the MIME message while sending HTML emails.
  199. ; It is used to support older mail clients and make spam filters happier.
  200. ADD_PLAIN_TEXT_ALT = false
  201. [auth]
  202. ; The valid duration of activate code in minutes.
  203. ACTIVATE_CODE_LIVES = 180
  204. ; The valid duration of reset password code in minutes.
  205. RESET_PASSWORD_CODE_LIVES = 180
  206. ; Whether to require email confirmation for adding new email addresses.
  207. ; Enable this option will also require user to confirm the email for registration.
  208. REQUIRE_EMAIL_CONFIRMATION = false
  209. ; Whether to disallow anonymous users visiting the site.
  210. REQUIRE_SIGNIN_VIEW = false
  211. ; Whether to disable self-registration. When disabled, accounts would have to be created by admins.
  212. DISABLE_REGISTRATION = false
  213. ; Whether to enable captcha validation for registration
  214. ENABLE_REGISTRATION_CAPTCHA = true
  215. ; Whether to enable reverse proxy authentication via HTTP header.
  216. ENABLE_REVERSE_PROXY_AUTHENTICATION = false
  217. ; Whether to automatically create new users for reverse proxy authentication.
  218. ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
  219. ; The HTTP header used as username for reverse proxy authentication.
  220. REVERSE_PROXY_AUTHENTICATION_HEADER = X-WEBAUTH-USER
  221. [user]
  222. ; Whether to enable email notifications for users.
  223. ENABLE_EMAIL_NOTIFICATION = false
  224. [session]
  225. ; The session provider, either "memory", "file", or "redis".
  226. PROVIDER = memory
  227. ; The configuration for respective provider:
  228. ; - memory: does not need any config yet
  229. ; - file: session file path, e.g. `data/sessions`
  230. ; - redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  231. PROVIDER_CONFIG = data/sessions
  232. ; The cookie name to store the session identifier.
  233. COOKIE_NAME = i_like_gogs
  234. ; Whether to set cookie in HTTPS only.
  235. COOKIE_SECURE = false
  236. ; The GC interval in seconds for session data.
  237. GC_INTERVAL = 3600
  238. ; The maximum life time in seconds for a session.
  239. MAX_LIFE_TIME = 86400
  240. ; The cookie name for CSRF token.
  241. CSRF_COOKIE_NAME = _csrf
  242. [cache]
  243. ; The cache adapter, either "memory", "redis", or "memcache".
  244. ADAPTER = memory
  245. ; For "memory" only, GC interval in seconds.
  246. INTERVAL = 60
  247. ; For "redis" and "memcache", connection host address:
  248. ; - redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  249. ; - memcache: `127.0.0.1:11211`
  250. HOST =
  251. [http]
  252. ; The value for "Access-Control-Allow-Origin" header, default is not to present.
  253. ACCESS_CONTROL_ALLOW_ORIGIN =
  254. [lfs]
  255. ; The storage backend for uploading new objects.
  256. STORAGE = local
  257. ; The root path to store LFS objects on local file system.
  258. OBJECTS_PATH = data/lfs-objects
  259. [attachment]
  260. ; Whether to enabled upload attachments in general.
  261. ENABLED = true
  262. ; The path to store attachments on the file system.
  263. PATH = data/attachments
  264. ; File types that are allowed to be uploaded, e.g. "image/jpeg|image/png". Leave empty to allow any file type.
  265. ALLOWED_TYPES = image/jpeg|image/png
  266. ; The maximum size of each file in MB.
  267. MAX_SIZE = 4
  268. ; The maximum number of files per upload.
  269. MAX_FILES = 5
  270. [release.attachment]
  271. ; Whether to enabled upload attachments for releases.
  272. ENABLED = true
  273. ; File types that are allowed to be uploaded, e.g. "image/jpeg|image/png". Leave empty to allow any file type.
  274. ALLOWED_TYPES = */*
  275. ; The maximum size of each file in MB.
  276. MAX_SIZE = 32
  277. ; The maximum number of files per upload.
  278. MAX_FILES = 10
  279. [time]
  280. ; Specifies the format for fully outputed dates.
  281. ; Values should be one of the following:
  282. ; ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano.
  283. ; For more information about the format see http://golang.org/pkg/time/#pkg-constants.
  284. FORMAT = RFC1123
  285. [picture]
  286. ; The path to store user avatars on the file system.
  287. AVATAR_UPLOAD_PATH = data/avatars
  288. ; The path to store repository avatars on the file system.
  289. REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
  290. ; Chinese users can use a custom avatar source, such as http://cn.gravatar.com/avatar/.
  291. GRAVATAR_SOURCE = gravatar
  292. ; Whether to disable Gravatar, this value will be forced to be true in offline mode.
  293. DISABLE_GRAVATAR = false
  294. ; Whether to enable federated avatar lookup uses DNS to discover avatar associated
  295. ; with emails, see https://www.libravatar.org for details.
  296. ; This value will be forced to be false in offline mode or when Gravatar is disabled.
  297. ENABLE_FEDERATED_AVATAR = false
  298. [markdown]
  299. ; Whether to enable hard line break extension.
  300. ENABLE_HARD_LINE_BREAK = false
  301. ; The list of custom URL schemes that are allowed as links when rendering Markdown.
  302. ; For example, "git" (for "git://") and "magnet" (for "magnet://").
  303. CUSTOM_URL_SCHEMES =
  304. ; The list of file extensions that should be rendered/edited as Markdown.
  305. ; Separate extensions with a comma. To render files with no extension as markdown, just put a comma.
  306. FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
  307. [smartypants]
  308. ; Whether to enable the Smartypants extension.
  309. ENABLED = false
  310. FRACTIONS = true
  311. DASHES = true
  312. LATEX_DASHES = true
  313. ANGLED_QUOTES = true
  314. [admin]
  315. ; Whether to disable regular (non-admin) users to create organizations.
  316. DISABLE_REGULAR_ORG_CREATION = false
  317. [webhook]
  318. ; The list of enabled types for users to use, can be "gogs", "slack", "discord", "dingtalk".
  319. TYPES = gogs, slack, discord, dingtalk
  320. ; Deliver timeout in seconds.
  321. DELIVER_TIMEOUT = 15
  322. ; Whether to allow insecure certification.
  323. SKIP_TLS_VERIFY = false
  324. ; The number of history information in each page.
  325. PAGING_NUM = 10
  326. ; General settings of loggers.
  327. [log]
  328. ; The root path for all log files, default is "log/" subdirectory.
  329. ROOT_PATH =
  330. ; Can be "console", "file", "slack" and "discord".
  331. ; Use comma to separate multiple modes, e.g. "console, file"
  332. MODE = console
  333. ; Buffer length of channel, keep it as it is if you don't know what it is.
  334. BUFFER_LEN = 100
  335. ; Either "Trace", "Info", "Warn", "Error", "Fatal", default is "Trace"
  336. LEVEL = Trace
  337. ; For "console" mode only
  338. [log.console]
  339. ; Comment out to inherit
  340. ; LEVEL =
  341. ; For "file" mode only
  342. [log.file]
  343. ; Comment out to inherit
  344. ; LEVEL =
  345. ; Whether to enable automated log rotate (switch of following options).
  346. LOG_ROTATE = true
  347. ; Whether to segment log files daily.
  348. DAILY_ROTATE = true
  349. ; The maximum size shift of single file, default is 28 means 1 << 28 = 256MB.
  350. MAX_SIZE_SHIFT = 28
  351. ; The maximum number of lines of single file.
  352. MAX_LINES = 1000000
  353. ; The expired days of log file (delete after max days).
  354. MAX_DAYS = 7
  355. ; For "slack" mode only
  356. [log.slack]
  357. ; Comment out to inherit
  358. ; LEVEL =
  359. ; Webhook URL
  360. URL =
  361. [log.discord]
  362. ; Comment out to inherit
  363. ; LEVEL =
  364. ; Webhook URL
  365. URL =
  366. ; The username to be displayed in notification.
  367. USERNAME = %(BRAND_NAME)s
  368. [log.xorm]
  369. ; Enable file rotation
  370. ROTATE = true
  371. ; Rotate every day
  372. ROTATE_DAILY = true
  373. ; Rotate once file size excesses x MB
  374. MAX_SIZE = 100
  375. ; Maximum days to keep logger files
  376. MAX_DAYS = 3
  377. [log.gorm]
  378. ; Whether to enable file rotation.
  379. ROTATE = true
  380. ; Whether to rotate file every day.
  381. ROTATE_DAILY = true
  382. ; The maximum file size in MB before next rotate.
  383. MAX_SIZE = 100
  384. ; The maximum days to keep files.
  385. MAX_DAYS = 3
  386. [cron]
  387. ; Enable running cron tasks periodically.
  388. ENABLED = true
  389. ; Run cron tasks when Gogs starts.
  390. RUN_AT_START = false
  391. [cron.update_mirrors]
  392. ; Defines how often the mirror syncer checks if any mirror needs to be synchronized (based on the mirror update interval).
  393. SCHEDULE = @every 10m
  394. ; Repository health check
  395. [cron.repo_health_check]
  396. SCHEDULE = @every 24h
  397. TIMEOUT = 60s
  398. ; Arguments for command 'git fsck', e.g. "--unreachable --tags"
  399. ; see more on http://git-scm.com/docs/git-fsck/1.7.5
  400. ARGS =
  401. ; Check repository statistics
  402. [cron.check_repo_stats]
  403. RUN_AT_START = true
  404. SCHEDULE = @every 24h
  405. ; Cleanup repository archives
  406. [cron.repo_archive_cleanup]
  407. RUN_AT_START = false
  408. SCHEDULE = @every 24h
  409. ; Time duration to check if archive should be cleaned
  410. OLDER_THAN = 24h
  411. [git]
  412. ; Disables highlight of added and removed changes
  413. DISABLE_DIFF_HIGHLIGHT = false
  414. ; Max number of files shown in diff view
  415. MAX_GIT_DIFF_FILES = 100
  416. ; Max number of lines allowed of a single file in diff view
  417. MAX_GIT_DIFF_LINES = 1000
  418. ; Max number of characters of a line allowed in diff view
  419. MAX_GIT_DIFF_LINE_CHARACTERS = 2000
  420. ; Arguments for command 'git gc', e.g. "--aggressive --auto"
  421. ; see more on http://git-scm.com/docs/git-gc/1.7.5
  422. GC_ARGS =
  423. ; Operation timeout in seconds
  424. [git.timeout]
  425. MIGRATE = 600
  426. MIRROR = 300
  427. CLONE = 300
  428. PULL = 300
  429. DIFF = 60
  430. GC = 60
  431. [mirror]
  432. ; Defines the default interval (in hours) until the next sync for a mirror (after a successful mirror sync).
  433. ; It can be overridden individually for each mirror repository in the settings.
  434. DEFAULT_INTERVAL = 8
  435. [api]
  436. ; Max number of items will response in a page
  437. MAX_RESPONSE_ITEMS = 50
  438. [ui]
  439. ; Number of repositories that are showed in one explore page
  440. EXPLORE_PAGING_NUM = 20
  441. ; Number of issues that are showed in one page
  442. ISSUE_PAGING_NUM = 10
  443. ; Number of maximum commits showed in one activity feed
  444. FEED_MAX_COMMIT_NUM = 5
  445. ; Value of "theme-color" meta tag, used by Android >= 5.0
  446. ; An invalid color like "none" or "disable" will have the default style
  447. ; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
  448. THEME_COLOR_META_TAG = `#ff5343`
  449. ; Max size in bytes of files to be displayed (default is 8MB)
  450. MAX_DISPLAY_FILE_SIZE = 8388608
  451. [ui.admin]
  452. ; Number of users that are showed in one page
  453. USER_PAGING_NUM = 50
  454. ; Number of repos that are showed in one page
  455. REPO_PAGING_NUM = 50
  456. ; Number of notices that are showed in one page
  457. NOTICE_PAGING_NUM = 25
  458. ; Number of organization that are showed in one page
  459. ORG_PAGING_NUM = 50
  460. [ui.user]
  461. ; Number of repos that are showed in one page
  462. REPO_PAGING_NUM = 15
  463. ; Number of news feeds that are showed in one page
  464. NEWS_FEED_PAGING_NUM = 20
  465. ; Number of commits that are showed in one page
  466. COMMITS_PAGING_NUM = 30
  467. [prometheus]
  468. ; Whether to enable Prometheus metrics.
  469. ENABLED = true
  470. ; Whether to enable HTTP Basic Authentication to protect metrics data.
  471. ENABLE_BASIC_AUTH = false
  472. ; The username for HTTP Basic Authentication.
  473. BASIC_AUTH_USERNAME =
  474. ; The password for HTTP Basic Authentication.
  475. BASIC_AUTH_PASSWORD =
  476. ; Extension mapping to highlight class
  477. ; e.g. .toml=ini
  478. [highlight.mapping]
  479. [i18n]
  480. LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR,gl-ES,uk-UA,en-GB,hu-HU,sk-SK,id-ID,fa-IR,vi-VN,pt-PT,mn-MN,ro-RO
  481. NAMES = English,简体中文,繁體中文(香港),繁體中文(臺灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어,galego,українська,English (United Kingdom),Magyar,Slovenčina,Indonesian,Persian,Vietnamese,Português,Монгол,Română
  482. ; Used for jQuery DateTimePicker,
  483. ; list of supported languages in https://xdsoft.net/jqplugins/datetimepicker/#lang
  484. [i18n.datelang]
  485. en-US = en
  486. zh-CN = zh
  487. zh-HK = zh-TW
  488. zh-TW = zh-TW
  489. de-DE = de
  490. fr-FR = fr
  491. nl-NL = nl
  492. lv-LV = lv
  493. ru-RU = ru
  494. ja-JP = ja
  495. es-ES = es
  496. pt-BR = pt-BR
  497. pl-PL = pl
  498. bg-BG = bg
  499. it-IT = it
  500. fi-FI = fi
  501. tr-TR = tr
  502. cs-CZ = cs-CZ
  503. sr-SP = sr
  504. sv-SE = sv
  505. ko-KR = ko
  506. gl-ES = gl
  507. uk-UA = uk
  508. en-GB = en-GB
  509. hu-HU = hu
  510. sk-SK = sk
  511. id-ID = id
  512. fa-IR = fa
  513. vi-VN = vi
  514. pt-PT = pt
  515. mn-MN = mn
  516. ro-RO = ro
  517. [other]
  518. SHOW_FOOTER_BRANDING = false
  519. ; Show time of template execution in the footer
  520. SHOW_FOOTER_TEMPLATE_LOAD_TIME = true