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. ; 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. [mailer]
  50. ENABLED = false
  51. ; Buffer length of channel, keep it as it is if you don't know what it is.
  52. SEND_BUFFER_LEN = 10
  53. ; Name displayed in mail title
  54. SUBJECT = %(APP_NAME)s
  55. ; Mail server
  56. ; Gmail: smtp.gmail.com:587
  57. HOST =
  58. ; Mail from address
  59. FROM =
  60. ; Mailer user name and password
  61. USER =
  62. PASSWD =
  63. [cache]
  64. ; Either "memory", "redis", or "memcache", default is "memory"
  65. ADAPTER = memory
  66. ; For "memory" only, GC interval in seconds, default is 60
  67. INTERVAL = 60
  68. ; For "redis" and "memcache", connection host address
  69. ; redis: ":6039"
  70. ; memcache: "127.0.0.1:11211"
  71. HOST =
  72. [session]
  73. ; Either "memory", "file", "redis" or "mysql", default is "memory"
  74. PROVIDER = file
  75. ; Provider config options
  76. ; memory: not have any config yet
  77. ; file: session file path, e.g. data/sessions
  78. ; redis: config like redis server addr, poolSize, password, e.g. 127.0.0.1:6379,100,astaxie
  79. ; mysql: go-sql-driver/mysql dsn config string, e.g. root:password@/session_table
  80. PROVIDER_CONFIG = data/sessions
  81. ; Session cookie name
  82. COOKIE_NAME = i_like_gogits
  83. ; If you use session in https only, default is false
  84. COOKIE_SECURE = false
  85. ; Enable set cookie, default is true
  86. ENABLE_SET_COOKIE = true
  87. ; Session GC time interval, default is 86400
  88. GC_INTERVAL_TIME = 86400
  89. ; Session life time, default is 86400
  90. SESSION_LIFE_TIME = 86400
  91. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  92. SESSION_ID_HASHFUNC = sha1
  93. ; Session hash key, default is use random string
  94. SESSION_ID_HASHKEY =
  95. [picture]
  96. ; The place to picture data, either "server" or "qiniu", default is "server"
  97. SERVICE = server
  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 =