Jibrel platform CMS for offerings management and public content
Required server run environment variables:
NODE_ENV=developfor development server,stagefor staging server,productionfor production serverINTERNAL_SECRET= any secret string for session token signing / verifying. There is already a secret in default config, but it is not suitable for production.DATABASE_HOSTDATABASE_PORTDATABASE_NAME= name of the project databaseDATABASE_USERNAMEDATABASE_PASSWORDPORT= which port application is launched atAWS_S3_REGIONAWS_S3_BUCKETAPI_BASE_URL= base url to access backend API. For example,https://api.tokenize.jibrel.networkfor productionAPI_AUTH_TOKEN= bearer auth token to use when accessing private backend API methodsORIGIN_SELF= full origin (schema://host:port) for server to be deployed to;https://tokenize.jibrel.networkfor production
Additional environment variables available are:
AWS_S3_ROOT= root directory for S3 storage, by default is emptyAWS_CDN_HOST= if not specified, default S3 host name will be usedGOOGLE_MAPS_API_KEY= if not specified, Google Maps integrations won't workGOOGLE_ANALYTICS_ID= if not specified, Google Analytics integrations won't workCORS_ORIGINS= additional CORS origins that need to have access to CMS API. If specifying a list, it must be comma-separatedORIGIN_ID= override origin (schema://host:port) for id subdomain, used for links, by default will beid.+ORIGIN_SELFORIGIN_INVESTOR= override origin (schema://host:port) for investor subdomain, used for links, by default will beinvestor.+ORIGIN_SELFORIGIN_COMPANY= override origin (schema://host:port) for company subdomain, used for links, by default will becompany.+ORIGIN_SELFHOSTNAME_SHARED= override hostname (host:port) for shared cookies domain, by default will be.+ORIGIN_SELF
Configurations are stored under /config/environments. They are named after respective NODE_ENV value. So if you pass NODE_ENV=stage app will load config files from /config/environments/stage. If you pass NODE_ENV=test there will be no configuration at all.