mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 00:44:18 -04:00
Refactored server.js into separate controllers. Implemented UNIFI_TOKEN startup check within info.js. Implemented KIOSK_HOMEPAGE environment variable. Implemented new / redirect structure base on KIOSK_HOMEPAGE variable. Implemented Admin UI button within kiosk.ejs. Updated array.js with new deprecated variables. Updated docker-compose.yml. Updated README.md.
This commit is contained in:
@@ -130,4 +130,12 @@ module.exports = () => {
|
||||
if(variables.unifiUsername.includes('@')) {
|
||||
log.error('[UniFi] Incorrect username detected! UniFi Cloud credentials are not supported!');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if UniFi Token is set
|
||||
*/
|
||||
if(variables.unifiToken === '') {
|
||||
log.error('[UniFi] Integration API Key is not set within UNIFI_TOKEN environment variable!');
|
||||
process.exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -45,6 +45,7 @@ module.exports = {
|
||||
kioskVoucherTypes: config('kiosk_voucher_types') || process.env.KIOSK_VOUCHER_TYPES || '480,1,,,;',
|
||||
kioskNameRequired: config('kiosk_name_required') || (process.env.KIOSK_NAME_REQUIRED === 'true') || false,
|
||||
kioskPrinter: config('kiosk_printer') || process.env.KIOSK_PRINTER || '',
|
||||
kioskHomepage: config('kiosk_homepage') || (process.env.KIOSK_HOMEPAGE === 'true') || false,
|
||||
logLevel: config('log_level') || process.env.LOG_LEVEL || 'info',
|
||||
translationDefault: config('translation_default') || process.env.TRANSLATION_DEFAULT || 'en',
|
||||
translationDebug: config('translation_debug') || (process.env.TRANSLATION_DEBUG === 'true') || false,
|
||||
|
||||
Reference in New Issue
Block a user