SHARE
TWEET

Untitled

a guest Feb 27th, 2020 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const variables = {
  2.   ...process.env,
  3.   SCREEN: {
  4.     ...process.env,
  5.     DATA_PATH: '/storage/data/',
  6.     FILE_PATH: '/storage/uploads/',
  7.     SCRIPT_PATH: '/storage/scripts/',
  8.     FILE_STORAGE_PORT: 54545,
  9.     GRAPHQL_PORT: 9001,
  10.     FRONTEND_PORT: 9999,
  11.     ENDPOINT: process.env.SCREEN_SERVER_ENDPOINT || 'wss://api.screenmanager.tech/graphql',
  12.   },
  13.   SERVER_COMMUNICATION_PROTOCOL: process.env.SERVER_COMMUNICATION_PROTOCOL || 'https',
  14.   UPDATER_SERVER_URI: `${process.env.SERVER_COMMUNICATION_PROTOCOL}://${process.env.UPDATER_SERVER_URI}` || `${process.env.SERVER_COMMUNICATION_PROTOCOL}://update.screenmanager.tech/screen.json`,
  15.   PLATFORM: process.env.PLATFORM || 'armv7l',
  16.   LOCAL_SCREEN_METADATA: '/storage/data/screen.json',
  17.   SCREEN_APP_FULL_PATH: '/storage/screen.AppImage',
  18.   SCREEN_APP_TEMPORARY_FULL_PATH: '/storage/temporary.AppImage',
  19.   RESTART_SCREEN_MS_DELAY_TIME: process.env.RESTART_SCREEN_MS_DELAY_TIME || 3000,
  20.   CHECK_FOR_UPDATES_MS_DELAY_TIME: process.env.CHECK_FOR_UPDATES_MS_DELAY_TIME || 60000,
  21. };
  22.  
  23. process.env = variables;
  24.  
  25. export default variables;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top