]> git.stg.codes - stg.git/blob - projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf
Configuration files translated into english
[stg.git] / projects / stargazer / inst / freebsd / etc / stargazer / stargazer.conf
1 ################################################################################\r
2 #                        Stargazer Configuration file                          #\r
3 ################################################################################\r
4 \r
5 # LOG file name\r
6 # Parameter: required\r
7 # Value: file path\r
8 # Default: /var/log/stargazer.log\r
9 LogFile = /var/log/stargazer.log\r
10 \r
11 # PID file name\r
12 # Parameter: optional\r
13 # Value: file path\r
14 # Default: /var/run/stargazer.pid\r
15 PIDFile = /var/run/stargazer.pid\r
16 \r
17 # Traffic classification rules\r
18 # Parameter: required\r
19 # Value: file path\r
20 # Default: /etc/stargazer/rules\r
21 Rules = /etc/stargazer/rules\r
22 \r
23 # The time interval between writing detailed user's statistics into the database\r
24 # Note: With a large number of users this value should be increased,\r
25 # since writting into the database can take a long time.\r
26 # Parameter: required\r
27 # Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 m), 1/6 (every 10 m)\r
28 # Default: 1/2\r
29 DetailStatWritePeriod = 1/2\r
30 \r
31 # The time interval between writing summary user's statistics into the database\r
32 # Parameter: optional\r
33 # Value: 1 ... 1440 (minutes)\r
34 # Default: 10\r
35 StatWritePeriod = 10\r
36 \r
37 # Day of charging fee\r
38 # Note: 0 - The last day of the month\r
39 # Parameter: required\r
40 # Value: 0 ... 31\r
41 # Default: 1\r
42 DayFee = 1\r
43 \r
44 # Fee charged at the last (yes) or first (no) day of tariffication period.\r
45 # Defines how the fee will be charged in the transition to the new tariff.\r
46 # User has tariff A with fee 100. Changing it to tariff B with fee 200\r
47 # will result in charging user's account at 100 if DayFeeIsLastDay = yes \r
48 # and at 200, if DayFeeIsLastDay = no\r
49 # Parameter: required\r
50 # Values: yes, no\r
51 # Default: no\r
52 DayFeeIsLastDay = no\r
53 \r
54 # Day of changing delayed tariffs and resetting summary user's statistics.\r
55 # Defines the edge of the tariffication period.\r
56 # Parameter: required\r
57 # Value: 0 ... 31. 0 - The last day of the month\r
58 # Default: 1\r
59 DayResetTraff = 1\r
60 \r
61 # Defines whether to charge fee daily (yes) or monthly (no)\r
62 # Parameter: required\r
63 # Values: yes, no\r
64 # Default: no\r
65 SpreadFee = no\r
66 \r
67 # Defines whether the user can access the internet if it has no cash,\r
68 # but remained prepaid traffic\r
69 # Parameter: required\r
70 # Values: yes, no\r
71 # Default: no\r
72 FreeMbAllowInet = no\r
73 \r
74 # Defines what will be written in the traffic cost in detail_stat.\r
75 # If user still has the prepaid traffic and WriteFreeMbTraffCost = no,\r
76 # then the traffic cost willn't be written in detail_stat.\r
77 # If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no, \r
78 # then the traffic cost will be written in detail_stat.\r
79 # When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case.\r
80 # Parameter: required\r
81 # Values: yes, no\r
82 # Default: yes\r
83 WriteFreeMbTraffCost = yes\r
84 \r
85 # Charge a full monthly fee even if user was "frozen" a part \r
86 # of the tariffication period\r
87 # Parameter: optional\r
88 # Values: yes, no\r
89 # Default: no\r
90 FullFee = yes\r
91 \r
92 # Allow user to see and use a full cash (yes) or hide a part of it (no) \r
93 # for the next fee charge\r
94 # Parameter: optional\r
95 # Values: yes, no\r
96 # Default: yes\r
97 # ShowFeeInCash=yes\r
98 \r
99 # The names of directions. Direction without names will not appear in\r
100 # authorizer and configurator.\r
101 # Note: Names consisting of several words should be quoted\r
102 # Parameter: optional\r
103 # Values:\r
104 <DirNames>\r
105     DirName0 = Internet\r
106     DirName1 =\r
107     DirName2 =\r
108     DirName3 =\r
109     DirName4 =\r
110     DirName5 =\r
111     DirName6 =\r
112     DirName7 =\r
113     DirName8 =\r
114     DirName9 =\r
115 </DirNames>\r
116 \r
117 # Amount of stg-exec processes.\r
118 # These processes are responsible for the execution of scripts OnConnect, \r
119 # OnDisconnect, etc. \r
120 # Amount of processes means how many scripts can be executed simultaneously.\r
121 # Recommend to leave 1 to avoid errors when executing scripts\r
122 # Parameter: optional\r
123 # Value: 1 ... 1024\r
124 # Default: 1\r
125 ExecutersNum = 1\r
126 \r
127 # Message queue identifier for the script executer.\r
128 # It may be changed if there're a needs to run multiple copies of stargazer.\r
129 # Warning: If you do not understand it, do not touch this setting!\r
130 # Parameter: optional\r
131 # Value: 0 ... 2 ^ 32\r
132 # Default: 5555\r
133 # ExecMsgKey = 5555\r
134 \r
135 # The path to directory with server modules\r
136 # Parameter: required\r
137 # Value: directory path\r
138 # Default: /usr/lib/stg\r
139 ModulesPath = /usr/lib/stg\r
140 \r
141 # Directory where the "monitor" files are located.\r
142 # A blank files will be created in this directory. The modification time of such\r
143 # files will be changed about once a minute. If server crashes or some of server \r
144 # component hang, the files will stop refreshing, and on this basis we can define\r
145 # the failure of the server and if necessary restart. \r
146 # If option is omitted or blank, the monitoring is not performed.\r
147 # Parameter: optional\r
148 # Value: file path\r
149 # Default: /var/stargazer/monitor\r
150 #MonitorDir=/var/stargazer/monitor\r
151 \r
152 ################################################################################\r
153 # Store module\r
154 # Configure the module that works with the database server\r
155 \r
156 # Warning: Only one store module could be used at the same time!\r
157 \r
158 <IncludeFile "conf-enabled.d/store_*.conf">\r
159 </IncludeFile>\r
160 \r
161 \r
162 ################################################################################\r
163 # Other modules\r
164 \r
165 <Modules>\r
166 \r
167     <IncludeFile "conf-enabled.d/mod_*.conf">\r
168     </IncludeFile>\r
169 \r
170 </Modules>\r
171 ################################################################################\r