source: code/trunk/doc/suika-config.adoc@ 825

Last change on this file since 825 was 824, checked in by yakumo.izuru, 21 months ago

Remove spurious part from the docs

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

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