summaryrefslogtreecommitdiffstats
path: root/pica-node.conf.5
blob: 9a699055156cf76a3c50689b81544b8e6208f920 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
.TH pica-node.conf 5   
.SH NAME
pica-node.conf \- pica-node configuration file
.SH SYNOPSIS
.B /etc/pica-node.conf
.SH DESCRIPTION
.BR pica-node (8)
reads configuration data from 
.I /etc/pica-node.conf 
(or the 
file specified with -f on the command line). The file has .INI file format.
All options must be contained in the
.B [pica-node]
section. The possible options and their meanings are as follows:
.TP
.I announced_addr
Network address that can be used to reach this instance of pica-node. 
Can be specified in the form of a DNS name or an IP address (right now only the IPv4
address format is supported. IPv6 and domain name support will be added in 
future releases). If the computer running pica-node is behind the NAT, the external
 public address of the NAT machine must be specified and port forwarding must be 
 configured. Default value is "autoconfigure" which makes pica-node try to guess
 its external IP address. If pica-node is built with miniupnpc support, it will
 try to employ the UPnP protocol to get the external IP from the router and enable port
 forwarding of both the TCP and the UDP port, see listen_port. The forwarding
 is renewed for as long as pica-node runs.
.TP
.I listen_port
Specifies the port number that 
.BR pica-node (8)
listens on.  The default is 2299.
The number is used for the TCP port that accepts connections, and for a UDP
port that clients send a datagram to in order to learn which address and port
their NAT gives them.
.BR pica-node (8)
never sends anything from the UDP port, but it has to be reachable for
incoming datagrams, so both have to be allowed through a firewall or forwarded
by a router.
.TP
.I nodes_db_file
Specifies the nodes database file. This is the SQLite 3 database. It stores
info about available nodes (their address, port, last seen online, etc).
The default is 
.I /var/lib/pica-node/nodelist.db
.TP
.I dh_param_file
Specifies the path to the DH parameters file in .pem format. The default is 
.I /usr/share/pica-node/dhparam4096.pem
.TP
.I disable_reserved_addrs
Disables usage of reserved IP ranges (127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16 and others).
If such an address is received from another node or is set as the "announced_addr" value, it will be
rejected. This option can be set to "yes" or "no". Default is "yes".
.SH AUTHOR
Anton Sviridenko (anton (at) picapica.im)
.SH SEE ALSO
.BR pica-node (8)

.BR https://picapica.im