app.ini 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 = true
  34. [mailer]
  35. ENABLED = false
  36. ; Name displayed in mail title
  37. SUBJECT = %(APP_NAME)s
  38. ; Mail server
  39. HOST =
  40. ; Mailer user name and password
  41. USER =
  42. PASSWD =
  43. [log]
  44. ; Either "console", "file", "conn" or "smtp", default is "console"
  45. MODE = console
  46. ; Buffer length of channel, keep it as it is if you don't know what it is.
  47. BUFFER_LEN = 10000
  48. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  49. LEVEL = Trace
  50. ; For "console" mode only
  51. [log.console]
  52. LEVEL =
  53. ; For "file" mode only
  54. [log.file]
  55. LEVEL =
  56. FILE_NAME = log/gogs.log
  57. ; This enables automated log rotate(switch of following options), default is true
  58. LOG_ROTATE = true
  59. ; Max line number of single file, default is 1000000
  60. MAX_LINES = 1000000
  61. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  62. MAX_SIZE_SHIFT = 28
  63. ; Segment log daily, default is true
  64. DAILY_ROTATE = true
  65. ; Expired days of log file(delete after max days), default is 7
  66. MAX_DAYS = 7
  67. ; For "conn" mode only
  68. [log.conn]
  69. LEVEL =
  70. ; Reconnect host for every single message, default is false
  71. RECONNECT_ON_MSG = false
  72. ; Try to reconnect when connection is lost, default is false
  73. RECONNECT = false
  74. ; Either "tcp", "unix" or "udp", default is "tcp"
  75. PROTOCOL = tcp
  76. ; Host address
  77. ADDR =
  78. ; For "smtp" mode only
  79. [log.smtp]
  80. LEVEL =
  81. ; Name displayed in mail title, default is "Diagnostic message from serve"
  82. SUBJECT = Diagnostic message from serve
  83. ; Mail server
  84. HOST =
  85. ; Mailer user name and password
  86. USER =
  87. PASSWD =
  88. ; Receivers, can be one or more, e.g. ["1@example.com","2@example.com"]
  89. RECEIVERS =