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.

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