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.

164 lines
4.4 KiB

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