app.ini 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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|Python|Ruby|C Sharp
  11. LICENSES = Apache v2 License|GPL v2|MIT License|Affero GPL|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" or "postgres", 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. [security]
  27. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  28. SECRET_KEY = !#@FDEWREWR&*(
  29. [service]
  30. ACTIVE_CODE_LIVE_MINUTES = 180
  31. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  32. ; User need to confirm e-mail for registration
  33. REGISTER_EMAIL_CONFIRM = false
  34. [mailer]
  35. ENABLED = false
  36. ; Name displayed in mail title
  37. SUBJECT = %(APP_NAME)s
  38. ; Mail server
  39. ; Gmail: smtp.gmail.com:587
  40. HOST =
  41. ; Mail from address
  42. FROM =
  43. ; Mailer user name and password
  44. USER =
  45. PASSWD =
  46. [log]
  47. ; Either "console", "file", "conn" or "smtp", default is "console"
  48. MODE = console
  49. ; Buffer length of channel, keep it as it is if you don't know what it is.
  50. BUFFER_LEN = 10000
  51. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  52. LEVEL = Trace
  53. ; For "console" mode only
  54. [log.console]
  55. LEVEL =
  56. ; For "file" mode only
  57. [log.file]
  58. LEVEL =
  59. FILE_NAME = log/gogs.log
  60. ; This enables automated log rotate(switch of following options), default is true
  61. LOG_ROTATE = true
  62. ; Max line number of single file, default is 1000000
  63. MAX_LINES = 1000000
  64. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  65. MAX_SIZE_SHIFT = 28
  66. ; Segment log daily, default is true
  67. DAILY_ROTATE = true
  68. ; Expired days of log file(delete after max days), default is 7
  69. MAX_DAYS = 7
  70. ; For "conn" mode only
  71. [log.conn]
  72. LEVEL =
  73. ; Reconnect host for every single message, default is false
  74. RECONNECT_ON_MSG = false
  75. ; Try to reconnect when connection is lost, default is false
  76. RECONNECT = false
  77. ; Either "tcp", "unix" or "udp", default is "tcp"
  78. PROTOCOL = tcp
  79. ; Host address
  80. ADDR =
  81. ; For "smtp" mode only
  82. [log.smtp]
  83. LEVEL =
  84. ; Name displayed in mail title, default is "Diagnostic message from serve"
  85. SUBJECT = Diagnostic message from serve
  86. ; Mail server
  87. HOST =
  88. ; Mailer user name and password
  89. USER =
  90. PASSWD =
  91. ; Receivers, can be one or more, e.g. ["[email protected]","[email protected]"]
  92. RECEIVERS =