You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
2.9 KiB

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