app.ini 2.8 KB

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