-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.conf
101 lines (77 loc) · 2.44 KB
/
config.conf
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
99
100
101
[main]
; Define here the path to the pid file
pid = pid.pid
; Set LOG level for message filtering
; Values (String):
; ERROR
; WARN
; INFO
; DEBUG
; Default: INFO
log_level = INFO
; Set LOG target
; Values (String):
; SYSLOG
; STDERR
; STDOUT
; A path to a simple file
; Default STDOUT
log_target = STDOUT
; Set custom log format
; Don't forget to escape percent with a double percent
;log_format = %%(name)s[%%(process)d]: %%(levelname)s %%(message)s
; If theses options are defined the program's
; privileges will be downgrade to this user and group rights
;user =
;group =
; Main fonctionnal mode (DAEMON by default)
mode = DAEMON
;mode = STANDALONE
[daemon]
;; Configuration group dedicated to the daemon mode
; Select the type of receiver that will be used
receiver_type = unix
; Select the type of output that will be used
transmitter_type = python_gammu
; The name of the file which contains the parser implementation
message_parser = json
; The name of the metrics handler class
; Currently availables : prometheus, none
metrics_handler = prometheus
; The time to live for new created sessions
session_ttl = 60
; List of authentication tokens allowed to bypass
; default session role
; Each ROLE:TOKEN pair must be separated by comma
;tokens = STATE_ADMIN:1234
; Incoming messages validators chains
input_validators = number=regexp:^\+(33[0-9]+|localhost)$
content=regexp:^(?a)\w+( *\w+)+$
; Incoming messages filters chains
input_filters = content=lowerCase:1
; Outgoing messages validators chains
output_validators = number=regexp:^\+33[0-9]+$
[receiver]
;; this section is dedicated to the messages receiver
; The path to the fifo file or unix socket
path = ./unix.sock
; The group that will own the receivers path
; this allow another group to read/write using the receiver path
; without to add it to the running service's group
group = gammu
; The umask to use when create fifo and socket
umask = 0117
; Listen queue
; the number of unaccepted connections that the system will allow before refusing new connections.
listen_queue = 10
[transmitter]
; The path to the gammu-smsdrc configuration of the currently running
; gammu-smsd daemon
smsdrc_configuration = /etc/gammu-smsdrc
; The umask to use for file creation
umask = 0117
[metrics]
; The port on which handler will expose its metrics (for pull based ones)
listen_port = 8100
; The address on which handler will expose its metrics (for pull based ones)
listen_address =