2022-10-26 18:45:05 +00:00
|
|
|
const uuid = require('uuid')
|
|
|
|
|
2021-10-24 18:12:58 +00:00
|
|
|
const radius_config = {
|
2022-10-26 18:45:05 +00:00
|
|
|
enable: env('RADIUS_ENABLE', false),
|
2021-10-24 18:12:58 +00:00
|
|
|
port: env('RADIUS_PORT', 1812),
|
2022-10-26 18:45:05 +00:00
|
|
|
interface: env('RADIUS_INTERFACE', '0.0.0.0'),
|
|
|
|
secret: env('RADIUS_SECRET', uuid.v4()),
|
2021-10-24 18:12:58 +00:00
|
|
|
|
|
|
|
cert_file: {
|
|
|
|
public: env('RADIUS_CERT_FILE'),
|
|
|
|
private: env('RADIUS_KEY_FILE'),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = radius_config
|