2015-07-22 20:46:38 +02:00
|
|
|
# This is a sample configuration file for PyLink. You'll likely want to rename it to config.yml
|
|
|
|
# and begin your configuration there.
|
|
|
|
|
|
|
|
# Note: lines starting with a "#" are comments and will be ignored.
|
2016-04-03 07:26:20 +02:00
|
|
|
# Note 2: Use SPACES, NOT tabs to indent, or you will get parser errors on start!
|
2015-07-22 20:46:38 +02:00
|
|
|
|
2015-03-19 20:55:18 +01:00
|
|
|
bot:
|
2015-07-18 08:44:52 +02:00
|
|
|
# Sets nick, user/ident, and real name.
|
2015-07-07 21:03:30 +02:00
|
|
|
nick: pylink
|
|
|
|
user: pylink
|
|
|
|
realname: PyLink Service Client
|
2015-08-25 03:14:35 +02:00
|
|
|
|
|
|
|
# Server description (shown in /links, /whois, etc.)
|
|
|
|
serverdesc: PyLink Server
|
|
|
|
|
2016-05-15 20:45:32 +02:00
|
|
|
# Options below this require the fantasy plugin to be loaded.
|
|
|
|
|
|
|
|
# Sets the default fantasy command prefix for calling commands inside channels
|
|
|
|
prefix: "&"
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2015-11-29 05:46:53 +01:00
|
|
|
# Determines whether the bot will reply to commands prefixed with its nick
|
|
|
|
# (case sensitive and requires the fantasy plugin).
|
|
|
|
respondtonick: true
|
|
|
|
|
2016-05-15 20:45:32 +02:00
|
|
|
# Custom fantasy command prefixes for other service bots if they are loaded.
|
|
|
|
prefixes:
|
|
|
|
games: "@"
|
|
|
|
|
2016-05-21 05:48:41 +02:00
|
|
|
# Determines whether hideoper modes should be respected in WHOIS responses.
|
|
|
|
# Defaults to true if not specified.
|
|
|
|
whois_use_hideoper: true
|
|
|
|
|
2015-03-19 20:55:18 +01:00
|
|
|
login:
|
2015-07-07 21:03:30 +02:00
|
|
|
# PyLink administrative login - Change this, or the service will not start!
|
|
|
|
user: admin
|
|
|
|
password: changeme
|
2015-03-19 20:55:18 +01:00
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
servers:
|
2016-06-05 03:39:18 +02:00
|
|
|
# Please note: these are only EXAMPLE link blocks. You should edit them and
|
|
|
|
# remove ones that you don't need in your config.
|
2016-06-05 05:31:25 +02:00
|
|
|
|
|
|
|
# Short name for the network. This is used for relay's nick suffixes, the
|
|
|
|
# network plugin's (dis)connect commands, and elsewhere internally.
|
|
|
|
# You should change this to some abbreviation representing your network
|
|
|
|
# name; usually something 3-5 characters should be good.
|
2015-12-22 19:31:56 +01:00
|
|
|
inspnet:
|
2015-07-10 23:17:43 +02:00
|
|
|
# Server IP, port, and passwords
|
|
|
|
ip: 127.0.0.1
|
|
|
|
port: 7000
|
|
|
|
recvpass: "abcd"
|
|
|
|
sendpass: "abcd"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2015-09-20 20:55:51 +02:00
|
|
|
# The full network name, used by plugins.
|
2015-12-22 19:31:56 +01:00
|
|
|
netname: "InspIRCd Network"
|
2015-09-20 20:55:51 +02:00
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
# Hostname we will use to connect to the remote server
|
2015-12-22 19:31:56 +01:00
|
|
|
hostname: "pylink.yournet.local"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# SID - required for InspIRCd and TS6 based servers. This must be three
|
|
|
|
# characters long.
|
|
|
|
# The first char must be a digit [0-9], and the remaining two chars may
|
|
|
|
# be either uppercase letters [A-Z] or digits.
|
2015-07-10 23:17:43 +02:00
|
|
|
sid: "0AL"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# SID range - the range of SIDs PyLink is allowed to use to generate
|
|
|
|
# server IDs. On TS6, this should be a combination of digits, letters,
|
|
|
|
# and #'s. Each # denotes a range (0-9A-Z) of characters that can be
|
|
|
|
# used by PyLink to generate appropriate SIDs. You will want to make
|
|
|
|
# sure no other servers are using this range.
|
|
|
|
# There must be at least one # in the entry.
|
2015-08-24 06:15:49 +02:00
|
|
|
sidrange: "8##"
|
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
# Autojoin channels
|
|
|
|
channels: ["#pylink"]
|
2015-08-04 08:20:19 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Sets the protocol module to use - see the protocols/ folder for a list
|
|
|
|
# of valid values (omitting the .py extension).
|
2015-07-10 23:17:43 +02:00
|
|
|
protocol: "inspircd"
|
2015-04-25 07:37:07 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Sets autoconnect delay - comment this out or set the value below 1 to
|
|
|
|
# disable autoconnect entirely.
|
2015-07-15 20:53:07 +02:00
|
|
|
autoconnect: 5
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Sets ping frequency (i.e. how long we should wait between sending
|
|
|
|
# pings to our uplink). When more than two consecutive pings are missed,
|
2016-04-08 03:45:17 +02:00
|
|
|
# PyLink will disconnect with a ping timeout. This defaults to 180 if
|
2015-12-31 01:54:51 +01:00
|
|
|
# not set.
|
2016-04-08 03:45:17 +02:00
|
|
|
pingfreq: 180
|
2015-07-18 08:44:52 +02:00
|
|
|
|
2015-07-20 23:36:47 +02:00
|
|
|
# Separator character (used by relay)
|
|
|
|
separator: "/"
|
|
|
|
|
2016-04-18 21:29:15 +02:00
|
|
|
# If enabled, this opts this network out of relay IP sharing. i.e. this network
|
|
|
|
# will not have its users' IPs sent across the relay, and it will not see any
|
|
|
|
# IPs of other networks' users.
|
|
|
|
#relay_no_ips: true
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Sets the max nick length for the network. It is important this is
|
|
|
|
# set correctly, or PyLink might introduce a nick that is too long and
|
|
|
|
# cause netsplits!
|
2015-08-04 04:42:26 +02:00
|
|
|
maxnicklen: 30
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Toggles SSL for this network. Defaults to false if not specified, and
|
|
|
|
# requires the ssl_certfile and ssl_keyfile options to work.
|
2016-01-31 08:37:01 +01:00
|
|
|
#ssl: true
|
2015-08-12 11:00:43 +02:00
|
|
|
|
2016-01-31 08:37:01 +01:00
|
|
|
#ssl_certfile: pylink-cert.pem
|
|
|
|
#ssl_keyfile: pylink-key.pem
|
2015-08-11 05:24:55 +02:00
|
|
|
|
2015-08-12 11:00:43 +02:00
|
|
|
# Optionally, you can set this option to verify the SSL certificate
|
2016-01-31 08:04:13 +01:00
|
|
|
# fingerprint of your uplink.
|
|
|
|
#ssl_fingerprint: "e0fee1adf795c84eec4735f039503eb18d9c35cc"
|
|
|
|
|
|
|
|
# This sets the hash type for the fingerprint (md5, sha1, sha256, etc.)
|
|
|
|
# Valid values include md5 and sha1-sha512, though others may be
|
|
|
|
# supported depending on your system: see
|
|
|
|
# https://docs.python.org/3/library/hashlib.html
|
|
|
|
# This setting defaults to sha256.
|
|
|
|
#ssl_fingerprint_type: sha256
|
2015-08-12 11:00:43 +02:00
|
|
|
|
2015-08-04 08:20:19 +02:00
|
|
|
ts6net:
|
2015-10-03 08:17:57 +02:00
|
|
|
ip: ::1
|
|
|
|
|
|
|
|
# Determines whether IPv6 should be used for this connection.
|
|
|
|
ipv6: yes
|
|
|
|
|
2015-08-04 08:20:19 +02:00
|
|
|
port: 7000
|
|
|
|
recvpass: "abcd"
|
|
|
|
sendpass: "abcd"
|
|
|
|
hostname: "pylink.example.com"
|
|
|
|
sid: "8PY"
|
2015-12-22 19:31:56 +01:00
|
|
|
netname: "some TS6 network"
|
|
|
|
sidrange: "8P#"
|
2015-08-04 08:20:19 +02:00
|
|
|
|
|
|
|
# Leave this as an empty list if you don't want to join any channels.
|
|
|
|
channels: []
|
|
|
|
|
|
|
|
protocol: "ts6"
|
|
|
|
autoconnect: 5
|
|
|
|
pingfreq: 30
|
|
|
|
maxnicklen: 30
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Note: /'s in nicks are automatically converted to |'s for TS6
|
|
|
|
# networks, since they don't allow "/" in nicks.
|
2015-08-04 08:20:19 +02:00
|
|
|
separator: "|"
|
|
|
|
|
|
|
|
# The following options are specific to TS6 servers:
|
2015-12-31 01:54:51 +01:00
|
|
|
# Toggles owner (+y), admin (+a), and halfop (+h) support for
|
|
|
|
# shadowircd/elemental-ircd.
|
2015-08-04 08:20:19 +02:00
|
|
|
# This defaults to off for the best compatibility.
|
|
|
|
use_owner: false
|
|
|
|
use_admin: false
|
|
|
|
use_halfop: false
|
|
|
|
|
|
|
|
# Toggles support of shadowircd/elemental-ircd specific channel modes:
|
2015-12-31 01:54:51 +01:00
|
|
|
# +T (no notice), +u (hidden ban list), +E (no kicks), +J (blocks
|
|
|
|
# kickrejoin),
|
2015-08-04 08:20:19 +02:00
|
|
|
# +K (no repeat messages), +d (no nick changes), and user modes:
|
2015-12-31 01:54:51 +01:00
|
|
|
# +B (bot), +C (blocks CTCP), +D (deaf), +V (no invites), +I (hides
|
|
|
|
# channel list)
|
2015-08-04 08:20:19 +02:00
|
|
|
use_elemental_modes: false
|
|
|
|
|
2016-04-02 19:13:45 +02:00
|
|
|
unrealnet:
|
|
|
|
ip: 1.2.3.4
|
|
|
|
port: 8067
|
|
|
|
recvpass: "coffee"
|
|
|
|
sendpass: "tea"
|
|
|
|
hostname: "pylink.example.com"
|
|
|
|
sid: "2PY"
|
|
|
|
netname: "This should match your UnrealIRCd config"
|
|
|
|
sidrange: "8##"
|
|
|
|
channels: []
|
|
|
|
protocol: "unreal"
|
|
|
|
autoconnect: 5
|
|
|
|
pingfreq: 30
|
|
|
|
maxnicklen: 30
|
|
|
|
|
|
|
|
# This option enables SUPER HACKY UNREAL 3.2 COMPAT mode, which allows
|
|
|
|
# PyLink to link to mixed Unreal 3.2/4.0 networks, using a 4.0 server
|
|
|
|
# as a direct uplink.
|
|
|
|
# THIS IS EXPERIMENTAL, NOT WELL TESTED, AND MAY SET YOUR HOUSE ON FIRE
|
|
|
|
# AND G-LINE EVERYONE ON YOUR NETWORK.
|
|
|
|
# We encourage you to upgrade so that all your servers are running the
|
|
|
|
# same IRCd version.
|
|
|
|
#mixed_link: true
|
|
|
|
|
2016-04-18 07:48:45 +02:00
|
|
|
nefarious:
|
|
|
|
ip: 1.2.3.4
|
|
|
|
port: 45454
|
|
|
|
recvpass: "recv"
|
|
|
|
sendpass: "send"
|
|
|
|
hostname: "pylink.midnight.vpn"
|
|
|
|
|
|
|
|
# For P10, the SID and SID range options are just numbers. Make sure nothing
|
|
|
|
# else is using the range you're reserving for PyLink.
|
|
|
|
sid: 50
|
|
|
|
sidrange: "100-150"
|
|
|
|
channels: ["#lounge"]
|
|
|
|
protocol: nefarious
|
|
|
|
autoconnect: 5
|
|
|
|
maxnicklen: 15
|
|
|
|
netname: "Nefarious test server"
|
|
|
|
pingfreq: 30
|
|
|
|
|
|
|
|
# Halfop is optional in Nefarious. This should match your IRCd configuration.
|
|
|
|
use_halfop: false
|
|
|
|
|
|
|
|
# Determines whether account-based cloaks should be used (someone.users.yournet.org
|
|
|
|
# format). This should match your IRCd configuration:
|
|
|
|
# ENABLE this if HOST_HIDING_STYLE is set to either 1 or 3.
|
|
|
|
use_account_cloaks: true
|
|
|
|
|
|
|
|
# The cloak suffix to be used for account-based cloaks. This **MUST** match your
|
|
|
|
# IRCd configuration if use_account_cloaks is enabled.
|
|
|
|
cloak_suffix: "users.yournet.org"
|
|
|
|
|
|
|
|
# Determines whether account-based cloaks should be used for opers
|
|
|
|
# (someone.opers.yournet.org format). If use_account_cloaks is disabled,
|
|
|
|
# this will have no effect. This should match your IRCd configuration:
|
|
|
|
use_oper_account_cloaks: true
|
|
|
|
|
|
|
|
# The cloak suffix to be used for IRCop account-based cloaks. This **MUST** match your
|
|
|
|
# IRCd configuration if use_oper_account_cloaks is enabled.
|
|
|
|
oper_cloak_suffix: "staff.yournet.org"
|
|
|
|
|
|
|
|
# Determines whether UnrealIRCd-style hashed-host cloaks will be used.
|
|
|
|
# This should match your IRCd configuration:
|
|
|
|
# ENABLE this if HOST_HIDING_STYLE is set to either 2 or 3.
|
|
|
|
use_hashed_cloaks: true
|
|
|
|
|
|
|
|
# Determines whether extended accounts should be used for this network.
|
|
|
|
# This **MUST** match the EXTENDED_ACCOUNTS setting in your IRCd configuration.
|
|
|
|
# Disable this if you are using X3, and leave it on for any other service package
|
|
|
|
# (atheme, etc.)
|
|
|
|
use_extended_accounts: true
|
|
|
|
|
2015-04-25 07:37:07 +02:00
|
|
|
# Plugins to load (omit the .py extension)
|
|
|
|
plugins:
|
2015-12-31 01:54:51 +01:00
|
|
|
# Commands plugin: Provides core commands such as logging in, shutting down
|
|
|
|
# PyLink, and various command help.
|
2015-06-02 22:37:35 +02:00
|
|
|
- commands
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Networks plugin: Allows you to manage (dis)connections to networks while
|
|
|
|
# PyLink is running.
|
2015-09-03 08:08:04 +02:00
|
|
|
- networks
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Oper commands plugin: Provides a subset of network management commands.
|
2015-12-19 06:43:18 +01:00
|
|
|
# (KILL, JUPE, etc.)
|
|
|
|
# Note: these commands will be made available to anyone who's opered on your
|
|
|
|
# network, so make sure your opers are trustworthy!
|
2016-01-31 08:37:01 +01:00
|
|
|
#- opercmds
|
2015-12-19 06:43:18 +01:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Bots plugin: Allows you to manipulate pseudo-clients (bots) on networks.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- bots
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Relay plugin: Janus-style server-side relay plugin. See the relay: block
|
|
|
|
# below for configuration.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- relay
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Fantasy plugin: Allows you to trigger commands in channels by PyLink's
|
|
|
|
# nick or a configurable prefix character.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- fantasy
|
2015-12-31 01:54:51 +01:00
|
|
|
|
|
|
|
# Changehost plugin: Automatically changes the hostmask of matching users
|
|
|
|
# to a template string, as they connect. This requires the changehost: block
|
|
|
|
# to be configured correctly below.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- changehost
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2016-06-05 05:31:25 +02:00
|
|
|
logging:
|
|
|
|
# This configuration block defines targets that PyLink should log commands,
|
|
|
|
# errors, etc., to.
|
|
|
|
|
|
|
|
# This sets the level for STDOUT logging, which is always enabled. Valid
|
|
|
|
# settings include DEBUG, INFO, WARNING, ERROR, and CRITICAL: see
|
|
|
|
# https://docs.python.org/3/library/logging.html#logging-levels for details.
|
|
|
|
stdout: INFO
|
|
|
|
|
|
|
|
channels:
|
|
|
|
# Log to channels on the specified networks.
|
|
|
|
# Note: DEBUG logging is not supported here: any log level settings
|
|
|
|
# below INFO be automatically raised to INFO.
|
|
|
|
# Log messages are forwarded over relay, so you will get duplicate
|
|
|
|
# messages if you add log blocks for more than one channel in one
|
|
|
|
# relay.
|
|
|
|
loglevel: INFO
|
|
|
|
|
|
|
|
inspnet:
|
|
|
|
"#services":
|
|
|
|
loglevel: INFO
|
|
|
|
"#pylink-notifications":
|
|
|
|
loglevel: WARNING
|
|
|
|
|
|
|
|
ts6net:
|
|
|
|
"#services":
|
|
|
|
loglevel: INFO
|
|
|
|
|
|
|
|
files:
|
|
|
|
# Logs to file targets. These will be placed in the log/ folder in the
|
|
|
|
# PyLink directory, with a filename based on the current instance name
|
|
|
|
# and the target name defined: instancename-targetname.log
|
|
|
|
# Changing settings in this block will require a restart to take effect.
|
|
|
|
|
|
|
|
# When running with ./pylink, this will create log/pylink-errors.log
|
|
|
|
# When running with ./pylink someconf.yml, this will create log/someconf-errors.log
|
|
|
|
"errors":
|
|
|
|
loglevel: ERROR
|
|
|
|
|
|
|
|
# Ditto above. When running with ./pylink, it will use log/pylink-commands.log
|
|
|
|
# When running with ./pylink someconf.yml, this will create log/someconf-commands.log
|
|
|
|
"commands":
|
|
|
|
loglevel: INFO
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
changehost:
|
|
|
|
# This block configures the Changehost plugin. You don't need this if you
|
|
|
|
# aren't using it.
|
|
|
|
|
|
|
|
# Sets the networks where Changehost should be enabled.
|
|
|
|
enabled_nets:
|
|
|
|
- inspnet
|
|
|
|
- ts6net
|
|
|
|
|
|
|
|
# This sets the hostmasks that Changehost should look for. Whenever someone
|
|
|
|
# with a matching nick!user@host connects, their host will be set to the
|
|
|
|
# text defined. The following substitutions are available here:
|
|
|
|
# $uid, $ts (time of connection), $nick, $realhost, $host, $ident, $ip.
|
|
|
|
# Invalid characters in hosts are replaced with a "-".
|
|
|
|
# Also, make sure you quote each entry so the YAML parser treats them as
|
|
|
|
# raw strings.
|
|
|
|
hosts:
|
|
|
|
|
|
|
|
# Here are some examples. Note that to keep your users' details
|
|
|
|
# private, you should probably refrain from using $ip or $realhost,
|
|
|
|
# in these hostmasks, unless cloaking is already disabled.
|
|
|
|
"*!GLolol@*.yournet.com": "$nick.opers.yournet.com"
|
|
|
|
"*!*@localhost": "some-server.hostname"
|
|
|
|
|
|
|
|
# Freenode-style masks are possible with this (though without the
|
|
|
|
# hashing)
|
|
|
|
"*!*@bnc-server.yournet.com": "yournet/bnc-users/$ident"
|
|
|
|
"*!*@ircip?.mibbit.com": "$ident.$realhost"
|
|
|
|
"WebchatUser*!*@*": "webchat/users/$ident"
|
|
|
|
|
|
|
|
relay:
|
|
|
|
# This block defines various options for the Relay plugin. You don't need this
|
|
|
|
# if you aren't using it.
|
|
|
|
|
|
|
|
# Determines whether remote opers will have user mode +H (hideoper) set on
|
|
|
|
# them. This has the benefit of lowering the oper count in /lusers and
|
|
|
|
# /stats (P|p), but only on IRCds that support it. This defaults to true
|
|
|
|
# if not set.
|
|
|
|
hideoper: true
|
|
|
|
|
|
|
|
# Determines whether real IPs should be sent across the relay. You should
|
|
|
|
# generally have a consensus with your linked networks whether this should
|
|
|
|
# be turned on. You will see other networks' user IP addresses, and they
|
2016-04-18 21:29:15 +02:00
|
|
|
# will see yours. Individual networks can also opt out of IP sharing
|
|
|
|
# both ways by defining "relay_no_ips: true" in their server block.
|
2015-12-31 01:54:51 +01:00
|
|
|
show_ips: false
|
|
|
|
|
|
|
|
# Whether subservers should be spawned for each relay network (requires
|
|
|
|
# reloading the plugin to change). Defaults to true.
|
|
|
|
spawn_servers: true
|
2016-05-20 08:30:34 +02:00
|
|
|
|
|
|
|
# Determines whether NickServ login info should be shown in the /whois output for
|
|
|
|
# relay users. This works on most IRCds EXCEPT InspIRCd.
|
|
|
|
# Valid options include "all" (show this to everyone), "opers" (show only to
|
|
|
|
# opers), and "none" (disabled). Defaults to none if not specified.
|
|
|
|
whois_show_accounts: all
|
|
|
|
|
|
|
|
# Determines whether the origin server should be shown in the /whois output for
|
|
|
|
# relay users. This works on most IRCds EXCEPT InspIRCd.
|
|
|
|
# Valid options include "all" (show this to everyone), "opers" (show only to
|
|
|
|
# opers), and "none" (disabled). Defaults to none if not specified.
|
|
|
|
whois_show_server: opers
|