Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MODULES.CONF MODULES.CONF MODULES.CONF MODULES.CONF MODULES.CONF MODULES.CONF
- /*
- * m_httpd
- *
- * Allows services to serve web pages. By itself, this module does nothing useful.
- *
- * Note that using this will allow users to get the IP of your services.
- * To prevent this we recommend using a reverse proxy or a tunnel.
- */
- module
- {
- name = "m_httpd"
- httpd
- {
- /* Name of this service. */
- name = "httpd/main"
- /* IP to listen on. */
- ip = "0.0.0.0"
- /* Port to listen on. */
- port = 8080
- /* Time before connections to this server are timed out. */
- timeout = 30
- /* Listen using SSL. Requires an SSL module. */
- #ssl = yes
- /* If you are using a reverse proxy that sends one of the
- * extforward_headers set below, set this to its IP.
- * This allows services to obtain the real IP of users by
- * reading the forwarded-for HTTP header.
- */
- #extforward_ip = "192.168.0.255"
- /* The header to look for. These probably work as is. */
- extforward_header = "X-Forwarded-For Forwarded-For"
- }
- }
- Aqui é relativo a base de dados no modules.conf
- /*
- * m_mysql [EXTRA]
- *
- * This module allows other modules to use MySQL.
- */
- module
- {
- name = "m_mysql"
- mysql
- {
- /* The name of this service. */
- name = "mysql/main"
- database = "anope"
- server = "127.0.0.1"
- username = "anope"
- password = "password"
- port = 3306
- }
- }
- SERVICES.CONF SERVICES.CONF SERVICES.CONF SERVICES.CONF SERVICES.CONF
- /*
- * [RECOMMENDED] db_flatfile
- *
- * This is the default flatfile database format.
- */
- module
- {
- name = "db_flatfile"
- /*
- * The database name db_flatfile should use
- */
- database = "anope.db"
- /*
- * Sets the number of days backups of databases are kept. If you don't give it,
- * or if you set it to 0, Services won't backup the databases.
- *
- * NOTE: Services must run 24 hours a day for this feature to work.
- *
- * This directive is optional, but recommended.
- */
- keepbackups = 7
- /*
- * Allows Services to continue file write operations (i.e. database saving)
- * even if the original file cannot be backed up. Enabling this option may
- * allow Services to continue operation under conditions where it might
- * otherwise fail, such as a nearly-full disk.
- *
- * NOTE: Enabling this option can cause irrecoverable data loss under some
- * conditions, so make CERTAIN you know what you're doing when you enable it!
- *
- * This directive is optional, and you are discouraged against enabling it.
- */
- #nobackupokay = yes
- /*
- * If enabled, services will fork a child process to save databases.
- *
- * This is only useful with very large databases, with hundreds
- * of thousands of objects, that have a noticeable delay from
- * writing databases.
- *
- * If your database is large enough cause a noticeable delay when
- * saving you should consider a more powerful alternative such
- * as db_sql or db_redis, which incrementally update their
- * databases asynchronously in real time.
- */
- fork = no
- }
- /*
- * db_sql and db_sql_live
- *
- * db_sql module allows saving and loading databases using one of the SQL engines.
- * This module loads the databases once on startup, then incrementally updates
- * objects in the database as they are changed within Anope in real time. Changes
- * to the SQL tables not done by Anope will have no effect and will be overwritten.
- *
- * db_sql_live module allows saving and loading databases using one of the SQL engines.
- * This module reads and writes to SQL in real time. Changes to the SQL tables
- * will be immediately reflected into Anope. This module should not be loaded
- * in conjunction with db_sql.
- *
- */
- #module
- {
- name = "db_sql"
- #name = "db_sql_live"
- /*
- * The SQL service db_sql(_live) should use, these are configured in modules.conf.
- * For MySQL, this should probably be mysql/main.
- */
- engine = "mysql/main"
- /*
- * An optional prefix to prepended to the name of each created table.
- * Do not use the same prefix for other programs.
- */
- #prefix = "anope_db_"
- /* Whether or not to import data from another database module in to SQL on startup.
- * If you enable this, be sure that the database services is configured to use is
- * empty and that another database module to import from is loaded before db_sql.
- * After you enable this and do a database import you should disable it for
- * subsequent restarts.
- *
- * Note that you can not import databases using db_sql_live. If you want to import
- * databases and use db_sql_live you should import them using db_sql, then shut down
- * and start services with db_sql_live.
- */
- import = false
- }
- /* Extra (optional) modules. */
- include
- {
- type = "file"
- name = "modules.conf"
- }
- /*
- * Chanstats module.
- * Requires a MySQL Database.
- */
- include
- {
- type = "file"
- name = "chanstats.conf"
- }
- /*
- * IRC2SQL Gateway
- * This module collects data about users, channels and servers. It doesn't build stats
- * itself, however, it gives you the database, it's up to you how you use it.
- *
- * Requires a MySQL Database and MySQL version 5.5 or higher
- */
- include
- {
- type = "file"
- name = "irc2sql.conf"
- }
- module
- {
- name = "m_mysql"
- mysql
- {
- /* The name of this service. */
- name = "mysql/main"
- database = "anope"
- server = "127.0.0.1"
- username = "anope"
- password = "password"
- port = 3306
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement