Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.16 KB | None | 0 0
  1. ################################################################################
  2. # Stargazer Configuration file #
  3. ################################################################################
  4.  
  5. # LOG file name
  6. # Parameter: required
  7. # Value: file path
  8. # Default: /var/log/stargazer.log
  9. LogFile = /var/log/stargazer.log
  10.  
  11. # PID file name
  12. # Parameter: optional
  13. # Value: file path
  14. # Default: /var/run/stargazer.pid
  15. PIDFile = /var/run/stargazer.pid
  16.  
  17. # Traffic classification rules
  18. # Parameter: required
  19. # Value: file path
  20. # Default: /etc/stargazer/rules
  21. Rules = /etc/stargazer/rules
  22.  
  23. # The time interval between writing detailed user's statistics into the database
  24. # Note: With a large number of users this value should be increased,
  25. # since writting into the database can take a long time.
  26. # Parameter: required
  27. # Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 m), 1/6 (every 10 m)
  28. # Default: 1/2
  29. DetailStatWritePeriod = 1/2
  30.  
  31. # The time interval between writing summary user's statistics into the database
  32. # Parameter: optional
  33. # Value: 1 ... 1440 (minutes)
  34. # Default: 10
  35. StatWritePeriod = 10
  36.  
  37. # Day of charging fee
  38. # Note: 0 - The last day of the month
  39. # Parameter: required
  40. # Value: 0 ... 31
  41. # Default: 1
  42. DayFee = 1
  43.  
  44. # Fee charged at the last (yes) or first (no) day of tariffication period.
  45. # Defines how the fee will be charged in the transition to the new tariff.
  46. # User has tariff A with fee 100. Changing it to tariff B with fee 200
  47. # will result in charging users'account at 100 if DayFeeIsLastDay = yes
  48. # and at 200, if DayFeeIsLastDay = no
  49. # Parameter: required
  50. # Values: yes, no
  51. # Default: no
  52. DayFeeIsLastDay = no
  53.  
  54. # Day of changing delayed tariffs and resetting summary user's statistics.
  55. # Defines the edge of the tariffication period.
  56. # Parameter: required
  57. # Value: 0 ... 31. 0 - The last day of the month
  58. # Default: 1
  59. DayResetTraff = 1
  60.  
  61. # Defines whether to charge fee daily (yes) or monthly (no)
  62. # Parameter: required
  63. # Values: yes, no
  64. # Default: no
  65. SpreadFee = no
  66.  
  67. # Defines whether the user can access the internet if it has no cash,
  68. # but remained prepaid traffic
  69. # Parameter: required
  70. # Values: yes, no
  71. # Default: no
  72. FreeMbAllowInet = no
  73.  
  74. # Defines what will be written in the traffic cost in detail_stat.
  75. # User still has the prepaid traffic and WriteFreeMbTraffCost = no,
  76. # then the traffic cost willn't be written in detail_stat.
  77. # User doestn't have prepaid traffic and WriteFreeMbTraffCost = no,
  78. # then the traffic cost will be written in detail_stat.
  79. # When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case.
  80. # Parameter: required
  81. # Values: yes, no
  82. # Default: yes
  83. WriteFreeMbTraffCost = yes
  84.  
  85. # Charge a full monthly fee even if user was "frozen" a part
  86. # of the tariffication period
  87. # Parameter: optional
  88. # Values: yes, no
  89. # Default: no
  90. FullFee = yes
  91.  
  92. # Allow user to see and use a full cash (yes) or hide a part of it (no)
  93. # for the next fee charge
  94. # Parameter: optional
  95. # Values: yes, no
  96. # Default: yes
  97. # ShowFeeInCash=yes
  98.  
  99. # The names of directions. Direction without names will not appear in
  100. # authorizer and configurator.
  101. # Note: Names consisting of several words should be quoted
  102. # Parameter: optional
  103. # Values:
  104. <DirNames>
  105. DirName0 = Internet
  106. DirName1 =
  107. DirName2 =
  108. DirName3 =
  109. DirName4 =
  110. DirName5 =
  111. DirName6 =
  112. DirName7 =
  113. DirName8 =
  114. DirName9 =
  115. </DirNames>
  116.  
  117. # Amount of stg-exec processes.
  118. # These processes are responsible for the execution of scripts OnConnect,
  119. # OnDisconnect, etc.
  120. # Amount of processes means how many scripts can be executed simultaneously.
  121. # Recommend to leave 1 to avoid errors when executing scripts
  122. # Parameter: optional
  123. # Value: 1 ... 1024
  124. # Default: 1
  125. ExecutersNum = 1
  126.  
  127. # Message queue identifier for the script executer.
  128. # It may be changed if there're a needs to run multiple copies of stargazer.
  129. # Warning: If you do not understand it, do not touch this setting!
  130. # Parameter: optional
  131. # Value: 0 ... 2 ^ 32
  132. # Default: 5555
  133. # ExecMsgKey = 5555
  134.  
  135. # The path to directory with server modules
  136. # Parameter: required
  137. # Value: directory path
  138. # Default: /usr/lib/stg
  139. ModulesPath = /usr/lib/stg
  140.  
  141. # Directory where the "monitor" files are located.
  142. # A blank file will be created in this directory. The modification time of this
  143. # file will be changed about once a minute. If server crashes or some of server
  144. # component hang, the file will stop refreshing, and on this basis we can define
  145. # the failure of the server and if necessary restart.
  146. # If option is omitted or blank, the monitoring is not performed.
  147. # Parameter: optional
  148. # Value: file path
  149. # Default: /var/stargazer/monitor
  150. #MonitorDir=/var/stargazer/monitor
  151.  
  152. ################################################################################
  153. # Store module
  154. # Configure the module that works with the database server
  155.  
  156. # Option - the name of the module without 'mod_' at the beginning and '.so'
  157. # in the end ie full name of the module mod_store_files.so
  158. <StoreModule store_files>
  159.  
  160. # Working server directory, provides data on tariffs, users, administrators.
  161. # Parameter: required
  162. # Value: directory path
  163. WorkDir = /var/stargazer
  164.  
  165. # Owner, group and permissions of the files of user statistics (stat)
  166. # Parameter: required
  167. # Values: any, supported by OS
  168. ConfOwner = root
  169. ConfGroup = stargazer
  170. ConfMode = 600
  171.  
  172. # Owner, group and permissions on user configuration files (conf)
  173. # Parameter: required
  174. # Values: any, supported by OS
  175. StatOwner = root
  176. StatGroup = stargazer
  177. StatMode = 640
  178.  
  179. # Owner, group and permissions for user log files (log)
  180. # Parameter: required
  181. # Values: any, supported by OS
  182. UserLogOwner = root
  183. UserLogGroup = stargazer
  184. UserLogMode = 640
  185.  
  186. </StoreModule>
  187.  
  188. #<StoreModule store_firebird>
  189. # # Database server address
  190. # # Parameter: required
  191. # # Value: IP address or DNS name
  192. # # Default: localhost
  193. # server = localhost
  194. #
  195. # # Path to the database on the server or its alias
  196. # # Parameter: required
  197. # # Value: file path
  198. # # Default: /var/stg/stargazer.fdb
  199. # database = /var/stg/stargazer.fdb
  200. #
  201. # # Database username
  202. # # Parameter: required
  203. # # Value: any, supported by database
  204. # # Default: stg
  205. # user = stg
  206. #
  207. # # Database password
  208. # # Parameter: required
  209. # # Value: any, supported by database
  210. # # Default: 123456
  211. # password = 123456
  212. #
  213. # # The transaction isolation level
  214. # # Parameter: optional
  215. # # Values: concurrency, dirtyread, readcommitted, consistency
  216. # # Defalt: concurrency
  217. # isolationLevel = concurrency
  218. #
  219. # # Responding to lock (optional, defaults to wait):
  220. # # Parameter: optional
  221. # # Values: wait, nowait
  222. # # Defalt: wait
  223. # lockResolution = wait
  224. #</StoreModule>
  225.  
  226. #<StoreModule store_postgresql>
  227. # # Database server address
  228. # # Parameter: required
  229. # # Value: IP address or DNS name
  230. # # Default: localhost
  231. # server = localhost
  232. #
  233. # # Database name
  234. # # Parameter: required
  235. # # Value: any, supported by database
  236. # # Default: stargazer
  237. # database = stargazer
  238. #
  239. # # Database username
  240. # # Parameter: mandatory
  241. # # Value: any, supported by database
  242. # # Default: stg
  243. # user = stg
  244. #
  245. # # Database password
  246. # # Parameter: required
  247. # # Value: any, supported by database
  248. # # Default: 123456
  249. # password = 123456
  250. #</StoreModule>
  251.  
  252. #<StoreModule store_mysql>
  253. # # Database server address
  254. # # Parameter: required
  255. # # Value: IP address or DNS name
  256. # # Default: localhost
  257. # dbhost = localhost
  258. #
  259. # # Database name
  260. # # Parameter: required
  261. # # Value: any, supported by database
  262. # # Default: stg
  263. # dbname = stg
  264. #
  265. # # Database username
  266. # # Parameter: required
  267. # # Value: any, supported by database
  268. # # Default: stg
  269. # dbuser = stg
  270. #
  271. # # Database password
  272. # # Parameter: required
  273. # # Value: any, supported by database
  274. # # Default: 123456
  275. # rootdbpass = 123456
  276. #</StoreModule>
  277.  
  278. ################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement