mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-18 00:19:22 +08:00
0c46cbf30a
Removed an extra E. Sorry!
17 lines
733 B
JavaScript
17 lines
733 B
JavaScript
'use strict';
|
|
|
|
const { release } = require('./package.json');
|
|
|
|
module.exports.RELEASE = release;
|
|
module.exports.PORT = process.env.PORT || 51821;
|
|
module.exports.PASSWORD = process.env.PASSWORD;
|
|
module.exports.WG_PATH = process.env.WG_PATH || '/etc/wireguard/';
|
|
module.exports.WG_HOST = process.env.WG_HOST;
|
|
module.exports.WG_PORT = process.env.WG_PORT || 51820;
|
|
module.exports.WG_PERSISTENT_KEEPALIVE = process.env.WG_PERSISTENT_KEEPALIVE || 0;
|
|
module.exports.WG_DEFAULT_ADDRESS = process.env.WG_DEFAULT_ADDRESS || '10.8.0.x';
|
|
module.exports.WG_DEFAULT_DNS = typeof process.env.WG_DEFAULT_DNS === 'string'
|
|
? process.env.WG_DEFAULT_DNS
|
|
: '1.1.1.1';
|
|
module.exports.WG_ALLOWED_IPS = process.env.WG_ALLOWED_IPS || '0.0.0.0/0, ::/0';
|