This configuration file is a YAML format configuration file of TOUGHRADIUS, which defines various settings of the TOUGHRADIUS server. Below is a detailed description of each section in the configuration file:
system:appid:ToughRADIUS# Application ID, used to identify the TOUGHRADIUS instancelocation:Asia/Shanghai# Time zone setting for the region where the server is locatedworkdir:/var/toughradius# The working directory of TOUGHRADIUS, used to store logs, data files, etc.debug:true#Whether to enable debugging mode, more log information will be output when enabled.web:host:0.0.0.0# The host address that the Web service monitors, 0.0.0.0 means monitoring all network interfacesport:1816# The port number that the Web service listens totls_port:1817# The TLS encryption port number that the web service listens tosecret:9b6de5cc-0731-1203-xxtt-0f568ac9da37# Web service key, used for encryption and other security-related operationsdatabase:type:postgres#Database type, PostgreSQL is used herehost:127.0.0.1# Host address of the database serverport:5432#Port number of the database servername:toughradius_v8# Database nameuser:postgres# Database usernamepasswd:root# Database passwordmax_conn:100# Maximum number of database connectionsidle_conn:10# Number of database idle connectionsdebug:false# Whether to enable debugging mode for database operationsfreeradius:enabled:true# Whether to enable FreeRADIUS integrationhost:0.0.0.0# The host address monitored by the FreeRADIUS serviceport:1818# The port number monitored by the FreeRADIUS servicedebug:true# Whether the FreeRADIUS service enables debugging moderadiusd:enabled:true# Whether to enable the built-in RADIUS servicehost:0.0.0.0# The host address that the RADIUS service listens toauth_port:1812# The port number of the RADIUS authentication serviceacct_port:1813# Port number of RADIUS accounting serviceradsec_port:2083# Port number of RADIUS security servicedebug:true# Whether the RADIUS service enables debugging modetr069:host:0.0.0.0# TR069 service listening host addressport:1819# TR069 service listening port numbertls:false#Whether to enable TLS encryption, set to false here to disable itsecret:9b6de5cc-0731-1203-xxtt-0f568ac9da37# TR069 service keydebug:true# Whether the TR069 service enables debugging modemqtt:server:""#MQTT server address, if you use MQTT you need to configure itclient_id:""# MQTT client IDusername:""# Username of MQTT servicepassword:""# Password for MQTT servicedebug:false# Whether the MQTT service enables debugging modelogger:mode:development#Log mode, development means development modeconsole_enable:true# Whether to output logs on the consoleloki_enable:false# Whether to enable the Loki log aggregation systemfile_enable:true# Whether to enable file logsfilename:/var/toughradius/toughradius.log# Path to the log filequeue_size:4096# Log queue sizeloki_api:http://127.0.0.1:3100# API address of Loki serviceloki_user:toughradius# Username for Loki serviceloki_pwd:toughradius# Password for Loki serviceloki_job:toughradius# Job name of Loki servicemetrics_storage:/var/toughradius/data/metrics#Metric data storage pathmetrics_history:168# Historical retention time of indicator data (hours)
Please note that some settings in this configuration file may need to be adjusted based on your actual environment. For example, the database username and password should be set to your actual credentials for the database, TLS related settings should be adjusted depending on whether you use TLS, and MQTT and Loki configuration depends on whether you use these services. After modifying the configuration file, It is usually necessary to restart the TOUGHRADIUS service for the changes to take effect.