X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/cc7685dc764b43b8a9a061f4a38549f1c04fe047..da585bb94c437f06762a2042ef4c52166b8aafce:/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf b/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf index 55efa6ac..76919609 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf @@ -44,7 +44,7 @@ DayFee = 1 # Fee charged at the last (yes) or first (no) day of tariffication period. # Defines how the fee will be charged in the transition to the new tariff. # User has tariff A with fee 100. Changing it to tariff B with fee 200 -# will result in charging user's account at 100 if DayFeeIsLastDay = yes +# will result in charging user's account at 100 if DayFeeIsLastDay = yes # and at 200, if DayFeeIsLastDay = no # Parameter: required # Values: yes, no @@ -74,7 +74,7 @@ FreeMbAllowInet = no # Defines what will be written in the traffic cost in detail_stat. # If user still has the prepaid traffic and WriteFreeMbTraffCost = no, # then the traffic cost willn't be written in detail_stat. -# If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no, +# If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no, # then the traffic cost will be written in detail_stat. # When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case. # Parameter: required @@ -82,14 +82,14 @@ FreeMbAllowInet = no # Default: yes WriteFreeMbTraffCost = yes -# Charge a full monthly fee even if user was "frozen" a part +# Charge a full monthly fee even if user was "frozen" a part # of the tariffication period # Parameter: optional # Values: yes, no # Default: no -FullFee = yes +FullFee = no -# Allow user to see and use a full cash (yes) or hide a part of it (no) +# Allow user to see and use a full cash (yes) or hide a part of it (no) # for the next fee charge # Parameter: optional # Values: yes, no @@ -115,8 +115,8 @@ FullFee = yes # Amount of stg-exec processes. -# These processes are responsible for the execution of scripts OnConnect, -# OnDisconnect, etc. +# These processes are responsible for the execution of scripts OnConnect, +# OnDisconnect, etc. # Amount of processes means how many scripts can be executed simultaneously. # Recommend to leave 1 to avoid errors when executing scripts # Parameter: optional @@ -140,9 +140,9 @@ ModulesPath = /usr/lib/stg # Directory where the "monitor" files are located. # A blank files will be created in this directory. The modification time of such -# files will be changed about once a minute. If server crashes or some of server +# files will be changed about once a minute. If server crashes or some of server # component hang, the files will stop refreshing, and on this basis we can define -# the failure of the server and if necessary restart. +# the failure of the server and if necessary restart. # If option is omitted or blank, the monitoring is not performed. # Parameter: optional # Value: file path @@ -150,7 +150,7 @@ ModulesPath = /usr/lib/stg #MonitorDir=/var/stargazer/monitor # Defines message maximum lifetime -# Note: 0 — unlimited +# Note: 0 - unlimited # Parameter: optional # Value: any numeric # Default: 0 (day) @@ -161,10 +161,48 @@ ModulesPath = /usr/lib/stg # 1 - disallow fee charge if cash value is negative; # 2 - disallow fee charge if there is not enought cash (cash < fee). # Parameter: optional -# Value: 0 - 2 +# Value: 0 ... 2 # Default: 0 (classic) # FeeChargeType = 0 +# Enable or disable reconnect on tariff change +# Parameter: optional +# Values: yes, no +# Default: no +# ReconnectOnTariffChange = no + +# Definest set of parameters passed to OnConnect and OnDisconnect scripts +# This set is added to the end of the default param list, which are, respectively: +# login, ip, cash, id, dirs +# Valid parameter names: "cash", "upload", "download", "lastCashAdd", "passiveTime", +# "lastCashAddTime", "freeMb", "lastActivityTime", "password", "passive", "disabled", +# "disabledDetailStat", "alwaysOnline", "tariffName", "nextTariff", "address", +# "note", "group", "email", "phone", "realName", "credit", "creditExpire", "ips", +# "userdata0" ... "userdata9". +# Parameter: optional +# Values: parameter names, case insensitive +# Default: +# ScriptParams = + +# Enable or disable writing session log +# Parameter: optional +# Values: yes, no +# Default: no (session log is enabled) +# DisableSessionLog = no + +# Filter for logging parameter changes +# Defines which parameters will be logged to parameter log in database. Allows +# to specify multiuple parameter names or asterisk (*), which means "log all params". +# Valid parameter names: "cash", "upload", "download", "lastCashAdd", "passiveTime", +# "lastCashAddTime", "freeMb", "lastActivityTime", "password", "passive", "disabled", +# "disabledDetailStat", "alwaysOnline", "tariffName", "nextTariff", "address", +# "note", "group", "email", "phone", "realName", "credit", "creditExpire", "ips", +# "userdata0" ... "userdata9". +# Parameter: optional +# Values: parameter names, case insensitive, or "*" +# Default: * +# FilterParamsLog = * + ################################################################################ # Store module # Configure the module that works with the database server