app.ini 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ; App name that shows on every page title
  2. APP_NAME = Gogs: Go Git Service
  3. ; !!MUST CHANGE TO YOUR USER NAME!!
  4. RUN_USER = lunny
  5. ; Either "dev", "prod" or "test", default is "dev"
  6. RUN_MODE = dev
  7. [repository]
  8. ROOT = /Users/%(RUN_USER)s/git/gogs-repositories
  9. LANG_IGNS = Google Go|C|Python|Ruby|C Sharp
  10. LICENSES = Apache v2 License|GPL v2|MIT License|Affero GPL|BSD (3-Clause) License
  11. [server]
  12. DOMAIN = gogits.org
  13. HTTP_ADDR =
  14. HTTP_PORT = 3000
  15. [database]
  16. ; Either "mysql" or "postgres", it's your choice
  17. DB_TYPE = mysql
  18. HOST =
  19. NAME = gogs
  20. USER = root
  21. PASSWD =
  22. ; For "postgres" only, either "disable", "require" or "verify-full"
  23. SSL_MODE = disable
  24. [security]
  25. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  26. USER_PASSWD_SALT = !#@FDEWREWR&*(
  27. [mailer]
  28. ENABLED = false
  29. ; Name displayed in mail title
  30. SUBJECT = %(APP_NAME)s
  31. ; Mail server
  32. HOST =
  33. ; Mailer user name and password
  34. USER =
  35. PASSWD =
  36. [log]
  37. ; Either "console", "file", "conn" or "smtp", default is "console"
  38. MODE = console
  39. ; Buffer length of channel, keep it as it is if you don't know what it is.
  40. BUFFER_LEN = 10000
  41. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  42. LEVEL = Trace
  43. ; For "console" mode only, all log files will be stored in "/log" directory
  44. [log.console]
  45. LEVEL =
  46. ; For "file" mode only
  47. [log.file]
  48. LEVEL =
  49. FILE_NAME = "gogs.log"
  50. ; This enables automated log rotate(switch of following options), default is true
  51. LOG_ROTATE =
  52. ; Max line number of single file, default is 1000000
  53. MAX_LINES = 1000000
  54. ; Max size of single file, default is 1 << 28, 256MB
  55. MAX_SIZE = 1 << 28
  56. ; Segment log daily, default is true
  57. DAILY_ROTATE = true
  58. ; Expired days of log file(delete after max days), default is 7
  59. MAX_DAYS = 7
  60. ; For "conn" mode only
  61. [log.conn]
  62. LEVEL =
  63. ; Reconnect host for every single message, default is false
  64. RECONNECT_ON_MSG = false
  65. ; Try to reconnect when connection is lost, default is false
  66. RECONNECT = false
  67. ; Either "tcp", "unix" or "udp", default is "tcp"
  68. PROTOCOL = tcp
  69. ; Host address
  70. ADDR =
  71. ; For "smtp" mode only
  72. [log.smtp]
  73. LEVEL =
  74. ; Name displayed in mail title, default is "Diagnostic message from serve"
  75. SUBJECT = Diagnostic message from serve
  76. ; Mail server
  77. HOST =
  78. ; Mailer user name and password
  79. USER =
  80. PASSWD =
  81. ; Receivers, can be one or more
  82. RECEIVERS =