Skip to main content

Trubudget Frontend

Environment Variables

Frontend

Env VariableRequiredDefault ValueUsed byDescription
NODE_ENVno-FrontendIf set to development search Trubudget's external services (Email-/Excel-Export-Service) on localhost.
If set to production disable Redux devtools extension
REACT_APP_VERSIONno-FrontendInjected version via $npm_package_version in.env file to ensure the version is shown in the frontend
API_HOSTno-FrontendIP address of the api. This is only required if nginx proxy is used.
Hint: When deployed locally the host is set to localhost
API_PORTno8080FrontendPort of the api. This is only required if nginx proxy is used
API_PROTOCOLnohttpFrontendProtocol of the api. This is only required if nginx proxy is used. "http" or "https"
REACT_APP_EXCHANGE_RATE_URLnohttps://data-api.ecb.europa.eu/service/data/EXR/D..EUR.SP00.A?lastNObservations=1FrontendThe external URL where the exchange rates are fetched from. Note: Setting this variable is generally not recommended. Optional configuration is provided in case of ECB changing the location of forex API.
REACT_APP_AUTHPROXY_ENABLEDnofalseFrontendEnables rendering of auth proxy login button
REACT_APP_AUTHPROXY_URLnohttp://localhost:4000/signinFrontendauth proxy ingress. Required if REACT_APP_AUTHPROXY_ENABLED is set to true
REACT_APP_APPLICATIONINSIGHTS_CONNECTION_STRINGnoundefinedFrontendAzure Application Insights Connection String
REACT_APP_POLLING_INTERVALno5000FrontendHow often is data fetched from the server, in milliseconds. We recommend setting to 30000 (30 seconds), maybe longer if you experience performance issues.
REACT_APP_API_SERVICE_ADDITIONAL_NGINX_CONFnoundefinedFrontendAdditional configuration of nginx server for api service. It could be a muti-line string. It will be injected to the nginx configuration.
REACT_APP_EMAIL_SERVICE_ADDITIONAL_NGINX_CONFnoundefinedFrontendAdditional configuration of nginx server for email service. It could be a muti-line string. It will be injected to the nginx configuration.
REACT_APP_EXPORT_SERVICE_ADDITIONAL_NGINX_CONFnoundefinedFrontendAdditional configuration of nginx server for excel export service. It could be a muti-line string. It will be injected to the nginx configuration.
REACT_APP_STORAGE_SERVICE_ADDITIONAL_NGINX_CONFnoundefinedFrontendAdditional configuration of nginx server for storage service. It could be a muti-line string. It will be injected to the nginx configuration.
REACT_APP_EMAIL_SERVICE_ENABLEDnofalseFrontendWhen enabled, the frontend requests a email-service readiness call when entering the login screen.
If true the email section in the user-profile is enabled
EMAIL_HOSTno-FrontendIP address of the email notification service
EMAIL_PORTno8890FrontendPort of the email notification service
EMAIL_PROTOCOLnohttpFrontendProtocol of the email notification service
REACT_APP_EXPORT_SERVICE_ENABLEDnofalseFrontendIf true the frontend requests a export-service readiness call when entering the login screen and
the export button is shown at the side navbar
EXPORT_HOSTno-FrontendIP address of the excel export service
EXPORT_PORTno8888FrontendPort of the excel export service
EXPORT_PROTOCOLnohttpFrontendProtocol of the excel export service. "http" or "https"