You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.ini 4.5 kB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. ; App name that shows on every page title
  2. APP_NAME = Gogs: Go Git Service
  3. APP_LOGO = img/favicon.png
  4. ; Change it if you run locally
  5. RUN_USER = git
  6. ; Either "dev", "prod" or "test", default is "dev"
  7. RUN_MODE = dev
  8. [repository]
  9. ROOT =
  10. LANG_IGNS = Google Go|C|C++|Python|Ruby|C Sharp
  11. LICENSES = Apache v2 License|GPL v2|MIT License|Affero GPL|Artistic License 2.0|BSD (3-Clause) License
  12. [server]
  13. DOMAIN = localhost
  14. ROOT_URL = http://%(DOMAIN)s:%(HTTP_PORT)s/
  15. HTTP_ADDR =
  16. HTTP_PORT = 3000
  17. [database]
  18. ; Either "mysql", "postgres" or "sqlite3"(binary release only), it's your choice
  19. DB_TYPE = mysql
  20. HOST = 127.0.0.1:3306
  21. NAME = gogs
  22. USER = root
  23. PASSWD =
  24. ; For "postgres" only, either "disable", "require" or "verify-full"
  25. SSL_MODE = disable
  26. ; For "sqlite3" only
  27. PATH = data/gogs.db
  28. [admin]
  29. [security]
  30. INSTALL_LOCK = false
  31. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  32. SECRET_KEY = !#@FDEWREWR&*(
  33. ; Auto-login remember days
  34. LOGIN_REMEMBER_DAYS = 7
  35. COOKIE_USERNAME = gogs_awesome
  36. COOKIE_REMEMBER_NAME = gogs_incredible
  37. [service]
  38. ACTIVE_CODE_LIVE_MINUTES = 180
  39. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  40. ; User need to confirm e-mail for registration
  41. REGISTER_EMAIL_CONFIRM = false
  42. ; Does not allow register and admin create account only
  43. DISENABLE_REGISTERATION = false
  44. ; User must sign in to view anything.
  45. REQUIRE_SIGNIN_VIEW = false
  46. ; Cache avatar as picture
  47. ENABLE_CACHE_AVATAR = false
  48. ; Mail notification
  49. ENABLE_NOTIFY_MAIL = false
  50. [mailer]
  51. ENABLED = false
  52. ; Buffer length of channel, keep it as it is if you don't know what it is.
  53. SEND_BUFFER_LEN = 10
  54. ; Name displayed in mail title
  55. SUBJECT = %(APP_NAME)s
  56. ; Mail server
  57. ; Gmail: smtp.gmail.com:587
  58. HOST =
  59. ; Mail from address
  60. FROM =
  61. ; Mailer user name and password
  62. USER =
  63. PASSWD =
  64. [cache]
  65. ; Either "memory", "redis", or "memcache", default is "memory"
  66. ADAPTER = memory
  67. ; For "memory" only, GC interval in seconds, default is 60
  68. INTERVAL = 60
  69. ; For "redis" and "memcache", connection host address
  70. ; redis: ":6039"
  71. ; memcache: "127.0.0.1:11211"
  72. HOST =
  73. [session]
  74. ; Either "memory", "file", "redis" or "mysql", default is "memory"
  75. PROVIDER = file
  76. ; Provider config options
  77. ; memory: not have any config yet
  78. ; file: session file path, e.g. data/sessions
  79. ; redis: config like redis server addr, poolSize, password, e.g. 127.0.0.1:6379,100,astaxie
  80. ; mysql: go-sql-driver/mysql dsn config string, e.g. root:password@/session_table
  81. PROVIDER_CONFIG = data/sessions
  82. ; Session cookie name
  83. COOKIE_NAME = i_like_gogits
  84. ; If you use session in https only, default is false
  85. COOKIE_SECURE = false
  86. ; Enable set cookie, default is true
  87. ENABLE_SET_COOKIE = true
  88. ; Session GC time interval, default is 86400
  89. GC_INTERVAL_TIME = 86400
  90. ; Session life time, default is 86400
  91. SESSION_LIFE_TIME = 86400
  92. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  93. SESSION_ID_HASHFUNC = sha1
  94. ; Session hash key, default is use random string
  95. SESSION_ID_HASHKEY =
  96. [picture]
  97. ; The place to picture data, either "server" or "qiniu", default is "server"
  98. SERVICE = server
  99. [log]
  100. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  101. MODE = console
  102. ; Buffer length of channel, keep it as it is if you don't know what it is.
  103. BUFFER_LEN = 10000
  104. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  105. LEVEL = Trace
  106. ; For "console" mode only
  107. [log.console]
  108. LEVEL =
  109. ; For "file" mode only
  110. [log.file]
  111. LEVEL =
  112. FILE_NAME = log/gogs.log
  113. ; This enables automated log rotate(switch of following options), default is true
  114. LOG_ROTATE = true
  115. ; Max line number of single file, default is 1000000
  116. MAX_LINES = 1000000
  117. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  118. MAX_SIZE_SHIFT = 28
  119. ; Segment log daily, default is true
  120. DAILY_ROTATE = true
  121. ; Expired days of log file(delete after max days), default is 7
  122. MAX_DAYS = 7
  123. ; For "conn" mode only
  124. [log.conn]
  125. LEVEL =
  126. ; Reconnect host for every single message, default is false
  127. RECONNECT_ON_MSG = false
  128. ; Try to reconnect when connection is lost, default is false
  129. RECONNECT = false
  130. ; Either "tcp", "unix" or "udp", default is "tcp"
  131. PROTOCOL = tcp
  132. ; Host address
  133. ADDR =
  134. ; For "smtp" mode only
  135. [log.smtp]
  136. LEVEL =
  137. ; Name displayed in mail title, default is "Diagnostic message from serve"
  138. SUBJECT = Diagnostic message from serve
  139. ; Mail server
  140. HOST =
  141. ; Mailer user name and password
  142. USER =
  143. PASSWD =
  144. ; Receivers, can be one or more, e.g. ["1@example.com","2@example.com"]
  145. RECEIVERS =
  146. ; For "database" mode only
  147. [log.database]
  148. LEVEL =
  149. Driver =
  150. CONN =