summarylogtreecommitdiffstats
path: root/smp-server.ini
blob: 104e9357fe4b23dedcb2d8dbbb751f26129a2d75 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[INFORMATION]
# AGPLv3 license requires that you make any source code modifications
# available to the end users of the server.
# LICENSE: https://github.com/simplex-chat/simplexmq/blob/stable/LICENSE
# Include correct source code URI in case the server source code is modified in any way.
# If any other information fields are present, source code property also MUST be present.

source_code: https://github.com/simplex-chat/simplexmq

# Declaring all below information is optional, any of these fields can be omitted.

# Server usage conditions and amendments.
# usage_conditions: https://github.com/simplex-chat/simplex-chat/blob/stable/PRIVACY.md
# condition_amendments: link

# Server location and operator.
# server_country: ISO-3166 2-letter code
# operator: entity (organization or person name)
# operator_country: ISO-3166 2-letter code
# website:

# Administrative contacts.
# admin_simplex: SimpleX address
# admin_email:
# admin_pgp:
# admin_pgp_fingerprint:

# Contacts for complaints and feedback.
# complaints_simplex: SimpleX address
# complaints_email:
# complaints_pgp:
# complaints_pgp_fingerprint:

# Hosting provider.
# hosting: entity (organization or person name)
# hosting_country: ISO-3166 2-letter code

# Hosting type can be `virtual`, `dedicated`, `colocation`, `owned`
hosting_type: virtual

[STORE_LOG]
enable: on
store_queues: memory
store_messages: memory
restore_messages: on
expire_messages_days: 21
expire_messages_on_start: on
expire_messages_on_send: off
expire_ntfs_hours: 24
log_stats: on

[AUTH]
new_queues: on

# Use create_password to require a password for new queue creation.
# smp://fingerprint:password@host1,host2
# create_password: password to create new queues (any printable ASCII without whitespace, '@', ':' and '/')

# control_port_admin_password:
# control_port_user_password:

# daily_block_queue_quota: 20

[TRANSPORT]
# host is only used to print server address on start
host: your.domain.com

# Port 443: primary — works everywhere.
# Port 8443: fallback — also HTTPS-looking, avoids port conflicts.
# NOTE: Port 5223 (original SMP) and 5224 are blocked by DPI in Russia and
# some other countries. Use 443/8443 for maximum reachability.
port: 443,8443

log_tls_errors: off
websockets: off
# control_port: 5225

[PROXY]
# host_mode: public
# required_host_mode: off
# own_server_domains:
# socks_proxy: localhost:9050
# socks_mode: onion
# client_concurrency: 32

[INACTIVE_CLIENTS]
disconnect: on
ttl: 21600
check_interval: 3600

[WEB]
static_path: /var/opt/simplex/www

# Uncomment to serve the server information page over HTTPS.
# web.crt and web.key are generated by smp-server init, or copy from Caddy/certbot.
# https: 443
# cert: /etc/opt/simplex/web.crt
# key: /etc/opt/simplex/web.key