Advertisement
Guest User

Untitled

a guest
Apr 15th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. MODULES.CONF MODULES.CONF MODULES.CONF MODULES.CONF MODULES.CONF MODULES.CONF
  2. /*
  3. * m_httpd
  4. *
  5. * Allows services to serve web pages. By itself, this module does nothing useful.
  6. *
  7. * Note that using this will allow users to get the IP of your services.
  8. * To prevent this we recommend using a reverse proxy or a tunnel.
  9. */
  10. module
  11. {
  12. name = "m_httpd"
  13.  
  14. httpd
  15. {
  16. /* Name of this service. */
  17. name = "httpd/main"
  18.  
  19. /* IP to listen on. */
  20. ip = "0.0.0.0"
  21.  
  22. /* Port to listen on. */
  23. port = 8080
  24.  
  25. /* Time before connections to this server are timed out. */
  26. timeout = 30
  27.  
  28. /* Listen using SSL. Requires an SSL module. */
  29. #ssl = yes
  30.  
  31. /* If you are using a reverse proxy that sends one of the
  32. * extforward_headers set below, set this to its IP.
  33. * This allows services to obtain the real IP of users by
  34. * reading the forwarded-for HTTP header.
  35. */
  36. #extforward_ip = "192.168.0.255"
  37.  
  38. /* The header to look for. These probably work as is. */
  39. extforward_header = "X-Forwarded-For Forwarded-For"
  40. }
  41. }
  42.  
  43. Aqui é relativo a base de dados no modules.conf
  44. /*
  45. * m_mysql [EXTRA]
  46. *
  47. * This module allows other modules to use MySQL.
  48. */
  49. module
  50. {
  51. name = "m_mysql"
  52.  
  53. mysql
  54. {
  55. /* The name of this service. */
  56. name = "mysql/main"
  57. database = "anope"
  58. server = "127.0.0.1"
  59. username = "anope"
  60. password = "password"
  61. port = 3306
  62. }
  63. }
  64.  
  65. SERVICES.CONF SERVICES.CONF SERVICES.CONF SERVICES.CONF SERVICES.CONF
  66. /*
  67. * [RECOMMENDED] db_flatfile
  68. *
  69. * This is the default flatfile database format.
  70. */
  71. module
  72. {
  73. name = "db_flatfile"
  74.  
  75. /*
  76. * The database name db_flatfile should use
  77. */
  78. database = "anope.db"
  79.  
  80. /*
  81. * Sets the number of days backups of databases are kept. If you don't give it,
  82. * or if you set it to 0, Services won't backup the databases.
  83. *
  84. * NOTE: Services must run 24 hours a day for this feature to work.
  85. *
  86. * This directive is optional, but recommended.
  87. */
  88. keepbackups = 7
  89.  
  90. /*
  91. * Allows Services to continue file write operations (i.e. database saving)
  92. * even if the original file cannot be backed up. Enabling this option may
  93. * allow Services to continue operation under conditions where it might
  94. * otherwise fail, such as a nearly-full disk.
  95. *
  96. * NOTE: Enabling this option can cause irrecoverable data loss under some
  97. * conditions, so make CERTAIN you know what you're doing when you enable it!
  98. *
  99. * This directive is optional, and you are discouraged against enabling it.
  100. */
  101. #nobackupokay = yes
  102.  
  103. /*
  104. * If enabled, services will fork a child process to save databases.
  105. *
  106. * This is only useful with very large databases, with hundreds
  107. * of thousands of objects, that have a noticeable delay from
  108. * writing databases.
  109. *
  110. * If your database is large enough cause a noticeable delay when
  111. * saving you should consider a more powerful alternative such
  112. * as db_sql or db_redis, which incrementally update their
  113. * databases asynchronously in real time.
  114. */
  115. fork = no
  116. }
  117.  
  118. /*
  119. * db_sql and db_sql_live
  120. *
  121. * db_sql module allows saving and loading databases using one of the SQL engines.
  122. * This module loads the databases once on startup, then incrementally updates
  123. * objects in the database as they are changed within Anope in real time. Changes
  124. * to the SQL tables not done by Anope will have no effect and will be overwritten.
  125. *
  126. * db_sql_live module allows saving and loading databases using one of the SQL engines.
  127. * This module reads and writes to SQL in real time. Changes to the SQL tables
  128. * will be immediately reflected into Anope. This module should not be loaded
  129. * in conjunction with db_sql.
  130. *
  131. */
  132. #module
  133. {
  134. name = "db_sql"
  135. #name = "db_sql_live"
  136.  
  137. /*
  138. * The SQL service db_sql(_live) should use, these are configured in modules.conf.
  139. * For MySQL, this should probably be mysql/main.
  140. */
  141. engine = "mysql/main"
  142.  
  143. /*
  144. * An optional prefix to prepended to the name of each created table.
  145. * Do not use the same prefix for other programs.
  146. */
  147. #prefix = "anope_db_"
  148.  
  149. /* Whether or not to import data from another database module in to SQL on startup.
  150. * If you enable this, be sure that the database services is configured to use is
  151. * empty and that another database module to import from is loaded before db_sql.
  152. * After you enable this and do a database import you should disable it for
  153. * subsequent restarts.
  154. *
  155. * Note that you can not import databases using db_sql_live. If you want to import
  156. * databases and use db_sql_live you should import them using db_sql, then shut down
  157. * and start services with db_sql_live.
  158. */
  159. import = false
  160. }
  161.  
  162. /* Extra (optional) modules. */
  163. include
  164. {
  165. type = "file"
  166. name = "modules.conf"
  167. }
  168.  
  169. /*
  170. * Chanstats module.
  171. * Requires a MySQL Database.
  172. */
  173. include
  174. {
  175. type = "file"
  176. name = "chanstats.conf"
  177. }
  178.  
  179. /*
  180. * IRC2SQL Gateway
  181. * This module collects data about users, channels and servers. It doesn't build stats
  182. * itself, however, it gives you the database, it's up to you how you use it.
  183. *
  184. * Requires a MySQL Database and MySQL version 5.5 or higher
  185. */
  186. include
  187. {
  188. type = "file"
  189. name = "irc2sql.conf"
  190. }
  191.  
  192. module
  193. {
  194. name = "m_mysql"
  195.  
  196. mysql
  197. {
  198. /* The name of this service. */
  199. name = "mysql/main"
  200. database = "anope"
  201. server = "127.0.0.1"
  202. username = "anope"
  203. password = "password"
  204. port = 3306
  205. }
  206. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement