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

178 lines
4.6 KiB

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