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