app.ini 3.1 KB

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