application.ini 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. ##
  2. ## Application settings file
  3. ##
  4. [General]
  5. # Listens on the specified port.
  6. ListenPort=8080
  7. # Listens for incoming connections on the specified IP address. If this value
  8. # is empty, equivalent to "0.0.0.0".
  9. ListenAddress=
  10. # Sets the codec used by 'QObject::tr()' and 'toLocal8Bit()' to the
  11. # QTextCodec for the specified encoding. See QTextCodec class reference.
  12. InternalEncoding=UTF-8
  13. # Sets the codec for http output stream to the QTextCodec for the
  14. # specified encoding. See QTextCodec class reference.
  15. HttpOutputEncoding=UTF-8
  16. # Sets a language/country pair, such as en_US, ja_JP, etc.
  17. # If this value is empty, the system's locale is used.
  18. Locale=
  19. # Specify the multiprocessing module, such as thread or epoll.
  20. # thread: multithreading assigned to each socket, available for all platforms
  21. # epoll: scalable I/O event notification (epoll) in single thread, Linux only
  22. MultiProcessingModule=thread
  23. # Specify the absolute or relative path of the temporary directory
  24. # for HTTP uploaded files. Uses system default if not specified.
  25. UploadTemporaryDirectory=tmp
  26. # Specify setting files for SQL databases.
  27. SqlDatabaseSettingsFiles=database.ini
  28. # Specify the setting file for MongoDB, mongodb.ini.
  29. MongoDbSettingsFile=mongodb.ini
  30. # Specify the setting file for Redis, redis.ini.
  31. RedisSettingsFile=
  32. # Specify the directory path to store SQL query files.
  33. SqlQueriesStoredDirectory=sql/
  34. # Determines whether it renders views without controllers directly
  35. # like PHP or not, which views are stored in the directory of
  36. # app/views/direct. By default, this parameter is false.
  37. DirectViewRenderMode=false
  38. # Specify a file path for SQL query log.
  39. # If it's empty or the line is commented out, output to SQL query log
  40. # is disabled.
  41. SqlQueryLogFile=
  42. # Determines whether the application aborts (to create a core dump
  43. # on Unix systems) or not when it output a fatal message by tFatal()
  44. # method.
  45. ApplicationAbortOnFatal=false
  46. # This directive specifies the number of bytes that are allowed in
  47. # a request body. 0 means unlimited.
  48. LimitRequestBody=0
  49. # If false is specified, the protective function against cross-site request
  50. # forgery never work; otherwise it's enabled.
  51. EnableCsrfProtectionModule=false
  52. # Enables HTTP method override if true. The following are priorities of
  53. # override.
  54. # - Value of query parameter named '_method'
  55. # - Value of X-HTTP-Method-Override header
  56. # - Value of X-HTTP-Method header
  57. # - Value of X-METHOD-OVERRIDE header
  58. EnableHttpMethodOverride=false
  59. # Sets the timeout in seconds during which a keep-alive HTTP connection
  60. # will stay open on the server side. The zero value disables keep-alive
  61. # client connections.
  62. HttpKeepAliveTimeout=10
  63. # Forces some libraries to be loaded before all others. It means to set
  64. # the LD_PRELOAD environment variable for the application server, Linux
  65. # only. The paths to shared objects, jemalloc or TCMalloc, can be
  66. # specified.
  67. LDPreload=/usr/lib/x86_64-linux-gnu/libjemalloc.so
  68. ##
  69. ## Session section
  70. ##
  71. Session.Name=TFSESSION
  72. # Specify the session store type, such as 'sqlobject', 'file', 'cookie',
  73. # 'mongodb', 'redis', 'cachedb' or plugin module name.
  74. # For 'sqlobject', the settings specified in SqlDatabaseSettingsFiles are used.
  75. # For 'mongodb', the settings specified in MongoDbSettingsFile are used.
  76. # For 'redis', the settings specified in RedisSettingsFile are used.
  77. Session.StoreType=cookie
  78. # Replaces the session ID with a new one each time one connects, and
  79. # keeps the current session information.
  80. Session.AutoIdRegeneration=false
  81. # Specifies a Max-Age attribute of the session cookie in seconds. The value 0
  82. # means "until the browser is closed."
  83. Session.CookieMaxAge=0
  84. # Specifies a domain attribute to set in the session cookie.
  85. Session.CookieDomain=
  86. # Specifies a path attribute to set in the session cookie. Defaults to /.
  87. Session.CookiePath=/
  88. # Probability that the garbage collection starts.
  89. # If 100 specified, the GC of sessions starts at the rate of once per 100
  90. # accesses. If 0 specified, the GC never starts.
  91. Session.GcProbability=100000
  92. # Specifies the number of seconds after which session data will be seen as
  93. # 'garbage' and potentially cleaned up.
  94. Session.GcMaxLifeTime=1800
  95. # Secret key for verifying cookie session data integrity.
  96. # Enter at least 30 characters and all random.
  97. Session.Secret=0I3EINu8nxl1hMu0dVDdDpIvbT2zKs
  98. # Specify CSRF protection key.
  99. # Uses it in case of cookie session.
  100. Session.CsrfProtectionKey=_csrfId
  101. ##
  102. ## MPM thread section
  103. ##
  104. # Number of application server processes to be started.
  105. MPM.thread.MaxAppServers=
  106. # Maximum number of action threads allowed to start simultaneously
  107. # per server process. Set max_connections parameter of the DBMS
  108. # to (MaxAppServers * MaxThreadsPerAppServer) or more.
  109. MPM.thread.MaxThreadsPerAppServer=128
  110. ##
  111. ## MPM epoll section
  112. ##
  113. # Number of application server processes to be started.
  114. MPM.epoll.MaxAppServers=
  115. ##
  116. ## SystemLog settings
  117. ##
  118. # Specify the system log file name.
  119. SystemLog.FilePath=log/treefrog.log
  120. # Specify the layout of the system log
  121. # %d : Date-time
  122. # %p : Priority (lowercase)
  123. # %P : Priority (uppercase)
  124. # %t : Thread ID (dec)
  125. # %T : Thread ID (hex)
  126. # %i : PID (dec)
  127. # %I : PID (hex)
  128. # %m : Log message
  129. # %n : Newline code
  130. SystemLog.Layout="%d %5P [%t] %m%n"
  131. # Specify the date-time format of the system log
  132. SystemLog.DateTimeFormat="yyyy-MM-dd hh:mm:ss"
  133. ##
  134. ## AccessLog settings
  135. ##
  136. # Specify the access log file name.
  137. AccessLog.FilePath=
  138. # Specify the layout of the access log.
  139. # %h : Remote host
  140. # %d : Date-time the request was received
  141. # %r : First line of request
  142. # %s : Status code
  143. # %O : Bytes sent, including headers, cannot be zero
  144. # %n : Newline code
  145. AccessLog.Layout="%h %d \"%r\" %s %O%n"
  146. # Specify the date-time format of the access log
  147. AccessLog.DateTimeFormat="yyyy-MM-dd hh:mm:ss"
  148. ##
  149. ## ActionMailer section
  150. ##
  151. # Specify the delivery method such as "smtp" or "sendmail".
  152. # If empty, the mail is not sent.
  153. ActionMailer.DeliveryMethod=smtp
  154. # Specify the character set of email. The system encodes with this codec,
  155. # and sends the encoded mail.
  156. ActionMailer.CharacterSet=UTF-8
  157. ##
  158. ## ActionMailer SMTP section
  159. ##
  160. # Specify the connection's host name or IP address.
  161. ActionMailer.smtp.HostName=
  162. # Specify the connection's port number.
  163. ActionMailer.smtp.Port=
  164. # Enables STARTTLS extension if true.
  165. ActionMailer.smtp.EnableSTARTTLS=false
  166. # Enables SMTP authentication if true; disables SMTP
  167. # authentication if false.
  168. ActionMailer.smtp.Authentication=false
  169. # Specify the user name for SMTP authentication.
  170. ActionMailer.smtp.UserName=
  171. # Specify the password for SMTP authentication.
  172. ActionMailer.smtp.Password=
  173. # Enables the delayed delivery of email if true. If enabled, deliver() method
  174. # only adds the email to the queue and therefore the method doesn't block.
  175. ActionMailer.smtp.DelayedDelivery=false
  176. ##
  177. ## ActionMailer Sendmail section
  178. ##
  179. #ActionMailer.sendMail.CommandLocation=/usr/sbin/sendmail
  180. ##
  181. ## Cache section
  182. ##
  183. # Specify the settings file to enable the cache module.
  184. # Comment out the following line.
  185. Cache.SettingsFile=cache.ini
  186. # Specify the cache backend, such as 'sqlite', 'mongodb', 'redis' or
  187. # 'memory'.
  188. Cache.Backend=memory
  189. # Probability of starting garbage collection (GC) for cache.
  190. # If 100 is specified, GC will be started at a rate of once per 100
  191. # sets. If 0 is specified, the GC never starts.
  192. Cache.GcProbability=100000000
  193. # If true, enable LZ4 compression when storing data.
  194. Cache.EnableCompression=false