Trubudget Frontend
Environment Variables
Frontend
Env Variable | Required | Default Value | Used by | Description |
---|---|---|---|---|
NODE_ENV | no | - | Frontend | If set to development search Trubudget's external services (Email-/Excel-Export-Service) on localhost. If set to production disable Redux devtools extension |
REACT_APP_VERSION | no | - | Frontend | Injected version via $npm_package_version in.env file to ensure the version is shown in the frontend |
API_HOST | no | - | Frontend | IP address of the api. This is only required if nginx proxy is used. Hint: When deployed locally the host is set to localhost |
API_PORT | no | 8080 | Frontend | Port of the api. This is only required if nginx proxy is used |
API_PROTOCOL | no | http | Frontend | Protocol of the api. This is only required if nginx proxy is used. "http" or "https" |
REACT_APP_EXCHANGE_RATE_URL | no | https://data-api.ecb.europa.eu/service/data/EXR/D..EUR.SP00.A?lastNObservations=1 | Frontend | The 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_ENABLED | no | false | Frontend | Enables rendering of auth proxy login button |
REACT_APP_AUTHPROXY_URL | no | http://localhost:4000/signin | Frontend | auth proxy ingress. Required if REACT_APP_AUTHPROXY_ENABLED is set to true |
REACT_APP_APPLICATIONINSIGHTS_CONNECTION_STRING | no | undefined | Frontend | Azure Application Insights Connection String |
REACT_APP_POLLING_INTERVAL | no | 5000 | Frontend | How 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_CONF | no | undefined | Frontend | Additional 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_CONF | no | undefined | Frontend | Additional 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_CONF | no | undefined | Frontend | Additional 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_CONF | no | undefined | Frontend | Additional 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_ENABLED | no | false | Frontend | When 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_HOST | no | - | Frontend | IP address of the email notification service |
EMAIL_PORT | no | 8890 | Frontend | Port of the email notification service |
EMAIL_PROTOCOL | no | http | Frontend | Protocol of the email notification service |
REACT_APP_EXPORT_SERVICE_ENABLED | no | false | Frontend | If 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_HOST | no | - | Frontend | IP address of the excel export service |
EXPORT_PORT | no | 8888 | Frontend | Port of the excel export service |
EXPORT_PROTOCOL | no | http | Frontend | Protocol of the excel export service. "http" or "https" |