app.ini 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. # NEVER EVER MODIFY THIS FILE
  2. # PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE
  3. ; App name that shows on every page title
  4. APP_NAME = Gogs: Go Git Service
  5. ; Change it if you run locally
  6. RUN_USER = git
  7. ; Either "dev", "prod" or "test", default is "dev"
  8. RUN_MODE = dev
  9. [repository]
  10. ROOT =
  11. SCRIPT_TYPE = bash
  12. ; Default ANSI charset
  13. ANSI_CHARSET =
  14. ; Force every new repository to be private
  15. FORCE_PRIVATE = false
  16. ; Patch test queue length, make it as large as possible
  17. PULL_REQUEST_QUEUE_LENGTH = 10000
  18. [ui]
  19. ; Number of repositories that are showed in one explore page
  20. EXPLORE_PAGING_NUM = 20
  21. ; Number of issues that are showed in one page
  22. ISSUE_PAGING_NUM = 10
  23. ; Number of maximum commits showed in one activity feed
  24. FEED_MAX_COMMIT_NUM = 5
  25. [ui.admin]
  26. ; Number of users that are showed in one page
  27. USER_PAGING_NUM = 50
  28. ; Number of repos that are showed in one page
  29. REPO_PAGING_NUM = 50
  30. ; Number of notices that are showed in one page
  31. NOTICE_PAGING_NUM = 25
  32. ; Number of organization that are showed in one page
  33. ORG_PAGING_NUM = 50
  34. [markdown]
  35. ; Enable hard line break extension
  36. ENABLE_HARD_LINE_BREAK = false
  37. [server]
  38. PROTOCOL = http
  39. DOMAIN = localhost
  40. ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
  41. HTTP_ADDR =
  42. HTTP_PORT = 3000
  43. ; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
  44. ; In most cases you do not need to change the default value.
  45. ; Alter it only if your SSH server node is not the same as HTTP node.
  46. LOCAL_ROOT_URL = http://localhost:%(HTTP_PORT)s/
  47. ; Disable SSH feature when not available
  48. DISABLE_SSH = false
  49. ; Whether use builtin SSH server or not.
  50. START_SSH_SERVER = false
  51. SSH_PORT = 22
  52. ; Disable CDN even in "prod" mode
  53. OFFLINE_MODE = false
  54. DISABLE_ROUTER_LOG = false
  55. ; Generate steps:
  56. ; $ cd path/to/gogs/custom/https
  57. ; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
  58. ;
  59. ; Or from a .pfx file exported from the Windows certificate store (do
  60. ; not forget to export the private key):
  61. ; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
  62. ; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
  63. CERT_FILE = custom/https/cert.pem
  64. KEY_FILE = custom/https/key.pem
  65. ; Upper level of template and static file path
  66. ; default is the path where Gogs is executed
  67. STATIC_ROOT_PATH =
  68. ; Application level GZIP support
  69. ENABLE_GZIP = false
  70. ; Landing page for non-logged users, can be "home" or "explore"
  71. LANDING_PAGE = home
  72. [database]
  73. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  74. DB_TYPE = mysql
  75. HOST = 127.0.0.1:3306
  76. NAME = gogs
  77. USER = root
  78. PASSWD =
  79. ; For "postgres" only, either "disable", "require" or "verify-full"
  80. SSL_MODE = disable
  81. ; For "sqlite3" and "tidb"
  82. PATH = data/gogs.db
  83. [admin]
  84. [security]
  85. INSTALL_LOCK = false
  86. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  87. SECRET_KEY = !#@FDEWREWR&*(
  88. ; Auto-login remember days
  89. LOGIN_REMEMBER_DAYS = 7
  90. COOKIE_USERNAME = gogs_awesome
  91. COOKIE_REMEMBER_NAME = gogs_incredible
  92. ; Reverse proxy authentication header name of user name
  93. REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
  94. [service]
  95. ACTIVE_CODE_LIVE_MINUTES = 180
  96. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  97. ; User need to confirm e-mail for registration
  98. REGISTER_EMAIL_CONFIRM = false
  99. ; Does not allow register and admin create account only
  100. DISABLE_REGISTRATION = false
  101. ; User must sign in to view anything.
  102. REQUIRE_SIGNIN_VIEW = false
  103. ; Cache avatar as picture
  104. ENABLE_CACHE_AVATAR = false
  105. ; Mail notification
  106. ENABLE_NOTIFY_MAIL = false
  107. ; More detail: https://github.com/gogits/gogs/issues/165
  108. ENABLE_REVERSE_PROXY_AUTHENTICATION = false
  109. ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
  110. ; Do not check minimum key size with corresponding type
  111. DISABLE_MINIMUM_KEY_SIZE_CHECK = false
  112. ; Enable captcha validation for registration
  113. ENABLE_CAPTCHA = true
  114. ; used to filter keys which are too short
  115. [service.minimum_key_sizes]
  116. ED25519 = 256
  117. ECDSA = 256
  118. NTRU = 1087
  119. MCE = 1702
  120. McE = 1702
  121. RSA = 1024
  122. DSA = 1024
  123. [webhook]
  124. ; Hook task queue length
  125. QUEUE_LENGTH = 1000
  126. ; Deliver timeout in seconds
  127. DELIVER_TIMEOUT = 5
  128. ; Allow insecure certification
  129. SKIP_TLS_VERIFY = false
  130. ; Number of history information in each page
  131. PAGING_NUM = 10
  132. [mailer]
  133. ENABLED = false
  134. ; Buffer length of channel, keep it as it is if you don't know what it is.
  135. SEND_BUFFER_LEN = 100
  136. ; Name displayed in mail title
  137. SUBJECT = %(APP_NAME)s
  138. ; Mail server
  139. ; Gmail: smtp.gmail.com:587
  140. ; QQ: smtp.qq.com:25
  141. ; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
  142. HOST =
  143. ; Disable HELO operation when hostname are different.
  144. DISABLE_HELO =
  145. ; Custom hostname for HELO operation, default is from system.
  146. HELO_HOSTNAME =
  147. ; Do not verify the certificate of the server. Only use this for self-signed certificates
  148. SKIP_VERIFY =
  149. ; Use client certificate
  150. USE_CERTIFICATE = false
  151. CERT_FILE = custom/mailer/cert.pem
  152. KEY_FILE = custom/mailer/key.pem
  153. ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
  154. FROM =
  155. ; Mailer user name and password
  156. USER =
  157. PASSWD =
  158. [cache]
  159. ; Either "memory", "redis", or "memcache", default is "memory"
  160. ADAPTER = memory
  161. ; For "memory" only, GC interval in seconds, default is 60
  162. INTERVAL = 60
  163. ; For "redis" and "memcache", connection host address
  164. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  165. ; memcache: `127.0.0.1:11211`
  166. HOST =
  167. [session]
  168. ; Either "memory", "file", "redis" or "mysql", default is "memory"
  169. PROVIDER = memory
  170. ; Provider config options
  171. ; memory: not have any config yet
  172. ; file: session file path, e.g. `data/sessions`
  173. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  174. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  175. PROVIDER_CONFIG = data/sessions
  176. ; Session cookie name
  177. COOKIE_NAME = i_like_gogits
  178. ; If you use session in https only, default is false
  179. COOKIE_SECURE = false
  180. ; Enable set cookie, default is true
  181. ENABLE_SET_COOKIE = true
  182. ; Session GC time interval, default is 86400
  183. GC_INTERVAL_TIME = 86400
  184. ; Session life time, default is 86400
  185. SESSION_LIFE_TIME = 86400
  186. [picture]
  187. ; The place to picture data, either "server" or "qiniu", default is "server"
  188. SERVICE = server
  189. AVATAR_UPLOAD_PATH = data/avatars
  190. ; Chinese users can choose "duoshuo"
  191. ; or a custom avatar source, like: http://cn.gravatar.com/avatar/
  192. GRAVATAR_SOURCE = gravatar
  193. DISABLE_GRAVATAR = false
  194. [attachment]
  195. ; Whether attachments are enabled. Defaults to `true`
  196. ENABLE = true
  197. ; Path for attachments. Defaults to `data/attachments`
  198. PATH = data/attachments
  199. ; One or more allowed types, e.g. image/jpeg|image/png
  200. ALLOWED_TYPES = image/jpeg|image/png
  201. ; Max size of each file. Defaults to 32MB
  202. MAX_SIZE = 4
  203. ; Max number of files per upload. Defaults to 10
  204. MAX_FILES = 5
  205. [time]
  206. ; Specifies the format for fully outputed dates. Defaults to RFC1123
  207. ; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
  208. ; For more information about the format see http://golang.org/pkg/time/#pkg-constants
  209. FORMAT =
  210. [log]
  211. ROOT_PATH =
  212. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  213. ; Use comma to separate multiple modes, e.g. "console, file"
  214. MODE = console
  215. ; Buffer length of channel, keep it as it is if you don't know what it is.
  216. BUFFER_LEN = 10000
  217. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  218. LEVEL = Trace
  219. ; For "console" mode only
  220. [log.console]
  221. LEVEL =
  222. ; For "file" mode only
  223. [log.file]
  224. LEVEL =
  225. ; This enables automated log rotate(switch of following options), default is true
  226. LOG_ROTATE = true
  227. ; Max line number of single file, default is 1000000
  228. MAX_LINES = 1000000
  229. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  230. MAX_SIZE_SHIFT = 28
  231. ; Segment log daily, default is true
  232. DAILY_ROTATE = true
  233. ; Expired days of log file(delete after max days), default is 7
  234. MAX_DAYS = 7
  235. ; For "conn" mode only
  236. [log.conn]
  237. LEVEL =
  238. ; Reconnect host for every single message, default is false
  239. RECONNECT_ON_MSG = false
  240. ; Try to reconnect when connection is lost, default is false
  241. RECONNECT = false
  242. ; Either "tcp", "unix" or "udp", default is "tcp"
  243. PROTOCOL = tcp
  244. ; Host address
  245. ADDR =
  246. ; For "smtp" mode only
  247. [log.smtp]
  248. LEVEL =
  249. ; Name displayed in mail title, default is "Diagnostic message from server"
  250. SUBJECT = Diagnostic message from server
  251. ; Mail server
  252. HOST =
  253. ; Mailer user name and password
  254. USER =
  255. PASSWD =
  256. ; Receivers, can be one or more, e.g. ["1@example.com","2@example.com"]
  257. RECEIVERS =
  258. ; For "database" mode only
  259. [log.database]
  260. LEVEL =
  261. ; Either "mysql" or "postgres"
  262. DRIVER =
  263. ; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
  264. CONN =
  265. [cron]
  266. ; Enable running cron tasks periodically.
  267. ENABLED = true
  268. ; Run cron tasks when Gogs starts.
  269. RUN_AT_START = false
  270. ; Update mirrors
  271. [cron.update_mirrors]
  272. SCHEDULE = @every 1h
  273. ; Repository health check
  274. [cron.repo_health_check]
  275. SCHEDULE = @every 24h
  276. TIMEOUT = 60s
  277. ; Arguments for command 'git fsck', e.g.: "--unreachable --tags"
  278. ; see more on http://git-scm.com/docs/git-fsck/1.7.5
  279. ARGS =
  280. ; Check repository statistics
  281. [cron.check_repo_stats]
  282. RUN_AT_START = true
  283. SCHEDULE = @every 24h
  284. [git]
  285. MAX_GIT_DIFF_LINES = 10000
  286. ; Arguments for command 'git gc', e.g.: "--aggressive --auto"
  287. ; see more on http://git-scm.com/docs/git-gc/1.7.5
  288. GC_ARGS =
  289. [i18n]
  290. LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT
  291. NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano
  292. ; Used for datetimepicker
  293. [i18n.datelang]
  294. en-US = en
  295. zh-CN = zh
  296. zh-HK = zh-TW
  297. de-DE = de
  298. fr-FR = fr
  299. nl-NL = nl
  300. lv-LV = lv
  301. ru-RU = ru
  302. ja-JP = ja
  303. es-ES = es
  304. pt-BR = pt-BR
  305. pl-PL = pl
  306. bg-BG = bg
  307. it-IT = it
  308. [other]
  309. SHOW_FOOTER_BRANDING = false
  310. ; Show version information about gogs and go in the footer
  311. SHOW_FOOTER_VERSION = true
PANIC: session(release): write data/sessions/b/c/bcf9b8aff9569c1e: no space left on device

PANIC

session(release): write data/sessions/b/c/bcf9b8aff9569c1e: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)