[823] | 1 | = suika-config(5)
|
---|
| 2 | Simon Ser and contributors / Izuru Yakumo
|
---|
| 3 | v0.4.3
|
---|
| 4 |
|
---|
| 5 | :doctype: manpage
|
---|
| 6 | :manmanual: Suika IRC Bouncer
|
---|
| 7 | :mansource: SUIKA-CONFIG
|
---|
| 8 |
|
---|
| 9 | == Name
|
---|
| 10 | suika-config - Configuration file for suika(1)
|
---|
| 11 |
|
---|
| 12 | == Description
|
---|
| 13 | The config file has one directive per line
|
---|
| 14 |
|
---|
| 15 | Example:
|
---|
| 16 |
|
---|
| 17 | listen ircs://
|
---|
| 18 | tls cert.pem key.pem
|
---|
| 19 | hostname example.org
|
---|
| 20 |
|
---|
| 21 | The following directives are supported:
|
---|
| 22 |
|
---|
| 23 | * listen <uri>
|
---|
| 24 | Listening URI (default ":6697")
|
---|
| 25 |
|
---|
| 26 | The following URIs are supported:
|
---|
| 27 |
|
---|
| 28 | * ircs://host:port
|
---|
| 29 | Listens with TLS over TCP
|
---|
| 30 | * irc+insecure://host:port
|
---|
| 31 | Listens with plain-text over TCP
|
---|
| 32 | * unix:///<path>
|
---|
| 33 | Listens on a Unix domain socket
|
---|
| 34 | * wss://host:port
|
---|
| 35 | Listens for WebSocket connections over TLS
|
---|
| 36 | * ws+insecure://host:port
|
---|
| 37 | Listens for plain-text WebSocket connections
|
---|
| 38 | * ident://host:port
|
---|
| 39 | Listens for plain-text ident connections
|
---|
| 40 | * http+prometheus://host:port
|
---|
| 41 | Listens for plain-text HTTP connections and serves Prometheus metrics (host must be "localhost")
|
---|
| 42 | * http+pprof://host:port
|
---|
| 43 | Listens for plain-text HTTP connections and serves pprof runtime profiling data (host must be "localhost")
|
---|
| 44 | For more information, see: https://pkg.go.dev/net/http/pprof.
|
---|
| 45 |
|
---|
| 46 | --
|
---|
| 47 |
|
---|
| 48 | * hostname <name>
|
---|
| 49 | Server hostname
|
---|
| 50 | * title <title>
|
---|
| 51 | Server title. This will be sent as the ISUPPORT NETWORK value when clients don't select a specific network.
|
---|
| 52 | * tls <cert> <key>
|
---|
| 53 | Enable TLS support. The certificate and key files must be PEM-encoded.
|
---|
| 54 | * db <driver> <source>
|
---|
| 55 | Set the database location for user, network and channel storage.
|
---|
| 56 | By default, a sqlite3 database is opened in ./suika.db.
|
---|
| 57 |
|
---|
| 58 | Supported drivers:
|
---|
| 59 | * sqlite3: expects source to be a path to the SQLite file
|
---|
| 60 | * postgres: expects source to be a space- separated list of key=value parameters, e.g. db postgres host=/run/postgresql dbname=suika.
|
---|
| 61 | Note that sslmode defaults to require.
|
---|
| 62 | For more information on connection strings, see: https://pkg.go.dev/github.com/lib/pq#hdr-Connection_String_Parameters
|
---|
| 63 |
|
---|
| 64 | --
|
---|
| 65 |
|
---|
| 66 | * log fs <path>
|
---|
| 67 | Path to the bouncer logs directory, or empty to disable logging.
|
---|
| 68 | By default, logging is disabled.
|
---|
| 69 |
|
---|
| 70 | * http-origin <patterns>
|
---|
| 71 | List of allowed HTTP origins for WebSocket listeners. The parameters are interpreted as shell patterns, see glob(3)
|
---|
| 72 | By default, only the request host is authorized. Use this directive to enable cross-origin WebSockets.
|
---|
| 73 |
|
---|
| 74 | * accept-proxy-ip <cidr..>
|
---|
| 75 | Allow the specified IPs to act as a proxy.
|
---|
| 76 | Proxies have the ability to overwrite the remote and local connection addresses (via the PROXY protocol, the Forwarded HTTP header field defined in RFC 7239 or the X-Forwarded- HTTP header fields).
|
---|
| 77 | The special name "localhost" accepts the loopback addresses 127.0.0.0/8 and ::1/128.
|
---|
| 78 | By default, all IPs are rejected.
|
---|
| 79 |
|
---|
| 80 | * max-user-networks <limit>
|
---|
| 81 | Maximum number of networks per user. By default, there is no limit.
|
---|
| 82 |
|
---|
| 83 | * motd <path>
|
---|
| 84 | Path to the MOTD file.
|
---|
| 85 | The bouncer MOTD is sent to clients which aren't bound to a specific network.
|
---|
| 86 | By default, no MOTD is sent.
|
---|
| 87 |
|
---|
| 88 | * multi-upstream-mode <true|false>
|
---|
| 89 | Globally enable or disable multi-upstream mode.
|
---|
| 90 | By default, multi-upstream mode is enabled.
|
---|
| 91 |
|
---|
| 92 | * upstream-user-ip <cidr...>
|
---|
| 93 | Enable per-user IP addresses.
|
---|
| 94 | One IPv4 range and/or one IPv6 range can be specified in CIDR notation.
|
---|
| 95 | One IP address per range will be assigned to each user and will be used as the source address when connecting to an upstream network.
|
---|
| 96 | This can be useful to avoid having the whole bouncer banned from an upstream network because of one malicious user.
|
---|
| 97 |
|
---|
| 98 | == See Also
|
---|
| 99 | suika(1)
|
---|
| 100 | suikadb(1)
|
---|
| 101 | suika-znc-import(1)
|
---|
| 102 | suika-bouncerserv(7)
|
---|