app.ini 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. [service]
  33. ACTIVE_CODE_LIVE_MINUTES = 180
  34. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  35. ; User need to confirm e-mail for registration
  36. REGISTER_EMAIL_CONFIRM = false
  37. ; Does not allow register and admin create account only
  38. DISENABLE_REGISTERATION = false
  39. ; User must sign in to view anything.
  40. REQUIRE_SIGNIN_VIEW = false
  41. ; Cache avatar as picture
  42. ENABLE_CACHE_AVATAR = false
  43. [mailer]
  44. ENABLED = false
  45. ; Buffer length of channel, keep it as it is if you don't know what it is.
  46. SEND_BUFFER_LEN = 10
  47. ; Name displayed in mail title
  48. SUBJECT = %(APP_NAME)s
  49. ; Mail server
  50. ; Gmail: smtp.gmail.com:587
  51. HOST =
  52. ; Mail from address
  53. FROM =
  54. ; Mailer user name and password
  55. USER =
  56. PASSWD =
  57. [cache]
  58. ; Either "memory", "redis", or "memcache", default is "memory"
  59. ADAPTER = memory
  60. ; For "memory" only, GC interval in seconds, default is 60
  61. INTERVAL = 60
  62. ; For "redis" and "memcache", connection host address
  63. ; redis: ":6039"
  64. ; memcache: "127.0.0.1:11211"
  65. HOST =
  66. [picture]
  67. ; The place to picture data, either "server" or "qiniu", default is "server"
  68. SERVICE = server
  69. ; For "server" only, root path of picture data, default is "data/pictures"
  70. PATH = data/pictures
  71. [log]
  72. ; Either "console", "file", "conn" or "smtp", default is "console"
  73. MODE = console
  74. ; Buffer length of channel, keep it as it is if you don't know what it is.
  75. BUFFER_LEN = 10000
  76. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  77. LEVEL = Trace
  78. ; For "console" mode only
  79. [log.console]
  80. LEVEL =
  81. ; For "file" mode only
  82. [log.file]
  83. LEVEL =
  84. FILE_NAME = log/gogs.log
  85. ; This enables automated log rotate(switch of following options), default is true
  86. LOG_ROTATE = true
  87. ; Max line number of single file, default is 1000000
  88. MAX_LINES = 1000000
  89. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  90. MAX_SIZE_SHIFT = 28
  91. ; Segment log daily, default is true
  92. DAILY_ROTATE = true
  93. ; Expired days of log file(delete after max days), default is 7
  94. MAX_DAYS = 7
  95. ; For "conn" mode only
  96. [log.conn]
  97. LEVEL =
  98. ; Reconnect host for every single message, default is false
  99. RECONNECT_ON_MSG = false
  100. ; Try to reconnect when connection is lost, default is false
  101. RECONNECT = false
  102. ; Either "tcp", "unix" or "udp", default is "tcp"
  103. PROTOCOL = tcp
  104. ; Host address
  105. ADDR =
  106. ; For "smtp" mode only
  107. [log.smtp]
  108. LEVEL =
  109. ; Name displayed in mail title, default is "Diagnostic message from serve"
  110. SUBJECT = Diagnostic message from serve
  111. ; Mail server
  112. HOST =
  113. ; Mailer user name and password
  114. USER =
  115. PASSWD =
  116. ; Receivers, can be one or more, e.g. ["1@example.com","2@example.com"]
  117. RECEIVERS =