application.ini 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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.
  29. # To access MongoDB server, uncomment the following line.
  30. MongoDbSettingsFile=mongodb.ini
  31. # Specify the setting file for Redis.
  32. # To access Redis server, uncomment the following line.
  33. RedisSettingsFile=
  34. # Specify the setting file for Memcached.
  35. # To access Memcached server, uncomment the following line.
  36. MemcachedSettingsFile=
  37. # Specify the directory path to store SQL query files.
  38. SqlQueriesStoredDirectory=sql/
  39. # Determines whether it renders views without controllers directly
  40. # like PHP or not, which views are stored in the directory of
  41. # app/views/direct. By default, this parameter is false.
  42. DirectViewRenderMode=false
  43. # Specify a file path for SQL query log.
  44. # If it's empty or the line is commented out, output to SQL query log
  45. # is disabled.
  46. SqlQueryLog.FilePath=
  47. # Specify the layout of SQL query log.
  48. # %d : date-time
  49. # %p : priority (lowercase)
  50. # %P : priority (uppercase)
  51. # %t : thread ID (dec)
  52. # %T : thread ID (hex)
  53. # %i : PID (dec)
  54. # %I : PID (hex)
  55. # %e : elapsed processing time in milliseconds
  56. # %m : log message
  57. # %n : newline code
  58. SqlQueryLog.Layout="%d [%t] (%e) %m%n"
  59. # Specify the date-time format of SQL query log, see also QDateTime
  60. # class reference.
  61. SqlQueryLog.DateTimeFormat="yyyy-MM-dd hh:mm:ss"
  62. # Determines whether the application aborts (to create a core dump
  63. # on Unix systems) or not when it output a fatal message by tFatal()
  64. # method.
  65. ApplicationAbortOnFatal=false
  66. # This directive specifies the number of bytes that are allowed in
  67. # a request body. 0 means unlimited.
  68. LimitRequestBody=0
  69. # If false is specified, the protective function against cross-site request
  70. # forgery never work; otherwise it's enabled.
  71. EnableCsrfProtectionModule=false
  72. # Enables HTTP method override if true. The following are priorities of
  73. # override.
  74. # - Value of query parameter named '_method'
  75. # - Value of X-HTTP-Method-Override header
  76. # - Value of X-HTTP-Method header
  77. # - Value of X-METHOD-OVERRIDE header
  78. EnableHttpMethodOverride=false
  79. # Sets the timeout in seconds during which a keep-alive HTTP connection
  80. # will stay open on the server side. The zero value disables keep-alive
  81. # client connections.
  82. HttpKeepAliveTimeout=10
  83. # Forces some libraries to be loaded before all others. It means to set
  84. # the LD_PRELOAD environment variable for the application server, Linux
  85. # only. The paths to shared objects, jemalloc or TCMalloc, can be
  86. # specified.
  87. LDPreload=/usr/lib/x86_64-linux-gnu/libjemalloc.so
  88. ##
  89. ## Session section
  90. ##
  91. Session.Name=TFSESSION
  92. # Specify the session store type, such as 'sqlobject', 'file', 'cookie',
  93. # 'mongodb', 'redis', 'cachedb' or plugin module name.
  94. # For 'sqlobject', the settings specified in SqlDatabaseSettingsFiles are used.
  95. # For 'mongodb', the settings specified in MongoDbSettingsFile are used.
  96. # For 'redis', the settings specified in RedisSettingsFile are used.
  97. # For 'memcached', the settings specified in MemcachedSettingsFile are used.
  98. Session.StoreType=cookie
  99. # Replaces the session ID with a new one each time one connects, and
  100. # keeps the current session information.
  101. Session.AutoIdRegeneration=false
  102. # Specifies a Max-Age attribute of the session cookie in seconds. The value 0
  103. # means "until the browser is closed."
  104. Session.CookieMaxAge=0
  105. # Specifies a domain attribute to set in the session cookie.
  106. Session.CookieDomain=
  107. # Specifies a path attribute to set in the session cookie. Defaults to /.
  108. Session.CookiePath=/
  109. # Specifies a value to assert that a cookie must not be sent with cross-origin
  110. # requests; Strict, Lax or None.
  111. Session.CookieSameSite=Lax
  112. # Probability that the garbage collection starts.
  113. # If 100 specified, the GC of sessions starts at the rate of once per 100
  114. # accesses. If 0 specified, the GC never starts.
  115. Session.GcProbability=100000
  116. # Specifies the number of seconds after which session data will be seen as
  117. # 'garbage' and potentially cleaned up.
  118. Session.GcMaxLifeTime=1800
  119. # Secret key for verifying cookie session data integrity.
  120. # Enter at least 30 characters and all random.
  121. Session.Secret=0I3EINu8nxl1hMu0dVDdDpIvbT2zKs
  122. # Specify CSRF protection key.
  123. # Uses it in case of cookie session.
  124. Session.CsrfProtectionKey=_csrfId
  125. ##
  126. ## MPM thread section
  127. ##
  128. # Number of application server processes to be started.
  129. MPM.thread.MaxAppServers=
  130. # Maximum number of action threads allowed to start simultaneously
  131. # per server process. Set max_connections parameter of the DBMS
  132. # to (MaxAppServers * MaxThreadsPerAppServer) or more.
  133. MPM.thread.MaxThreadsPerAppServer=128
  134. ##
  135. ## MPM epoll section
  136. ##
  137. # Number of application server processes to be started.
  138. MPM.epoll.MaxAppServers=
  139. ##
  140. ## SystemLog settings
  141. ##
  142. # Specify the system log file name.
  143. SystemLog.FilePath=log/treefrog.log
  144. # Specify the layout of the system log
  145. # %d : Date-time
  146. # %p : Priority (lowercase)
  147. # %P : Priority (uppercase)
  148. # %t : Thread ID (dec)
  149. # %T : Thread ID (hex)
  150. # %i : PID (dec)
  151. # %I : PID (hex)
  152. # %m : Log message
  153. # %n : Newline code
  154. SystemLog.Layout="%d %5P [%t] %m%n"
  155. # Specify the date-time format of the system log
  156. SystemLog.DateTimeFormat="yyyy-MM-dd hh:mm:ss"
  157. ##
  158. ## AccessLog settings
  159. ##
  160. # Specify the access log file name.
  161. AccessLog.FilePath=
  162. # Specify the layout of the access log.
  163. # %h : Remote host
  164. # %d : Date-time the request was received
  165. # %r : First line of request
  166. # %s : Status code
  167. # %O : Bytes sent, including headers, cannot be zero
  168. # %e : elapsed processing time in milliseconds
  169. # %n : Newline code
  170. AccessLog.Layout="%h %d \"%r\" %s %O%n"
  171. # Specify the date-time format of the access log
  172. AccessLog.DateTimeFormat="yyyy-MM-dd hh:mm:ss"
  173. ##
  174. ## ActionMailer section
  175. ##
  176. # Specify the delivery method such as "smtp" or "sendmail".
  177. # If empty, the mail is not sent.
  178. ActionMailer.DeliveryMethod=smtp
  179. # Specify the character set of email. The system encodes with this codec,
  180. # and sends the encoded mail.
  181. ActionMailer.CharacterSet=UTF-8
  182. ##
  183. ## ActionMailer SMTP section
  184. ##
  185. # Specify the connection's host name or IP address.
  186. ActionMailer.smtp.HostName=
  187. # Specify the connection's port number.
  188. ActionMailer.smtp.Port=
  189. # Enables SMTP authentication if true; disables SMTP
  190. # authentication if false.
  191. ActionMailer.smtp.Authentication=false
  192. # Enables STARTTLS extension if true.
  193. ActionMailer.smtp.EnableSTARTTLS=false
  194. # Specify the user name for SMTP authentication.
  195. ActionMailer.smtp.UserName=
  196. # Specify the password for SMTP authentication.
  197. ActionMailer.smtp.Password=
  198. # Enables the delayed delivery of email if true. If enabled, deliver() method
  199. # only adds the email to the queue and therefore the method doesn't block.
  200. ActionMailer.smtp.DelayedDelivery=false
  201. ##
  202. ## ActionMailer Sendmail section
  203. ##
  204. #ActionMailer.sendMail.CommandLocation=/usr/sbin/sendmail
  205. ##
  206. ## Cache section
  207. ##
  208. # Specify the settings file to enable the cache module,
  209. # which can be used through Tf::cache() function.
  210. # See https://api-reference.treefrogframework.org/classTCache.html.
  211. # Uncomment the following line and write connection information
  212. # to the file.
  213. Cache.SettingsFile=cache.ini
  214. # Specify the cache backend, such as 'sqlite', 'mongodb', 'redis',
  215. # 'memcached' or 'memory'.
  216. Cache.Backend=memory
  217. # Probability of starting garbage collection (GC) for cache.
  218. # If 1000 is specified, GC will be started at a rate of once per 1000
  219. # sets. If 0 is specified, the GC never starts.
  220. Cache.GcProbability=100000000
  221. # If true, enable LZ4 compression when storing data.
  222. Cache.EnableCompression=false