LOG_LEVEL | no | info | Defines the log output. |
ORGANIZATION | no | MyOrga | In the blockchain network, each node is represented by its organization name. This environment variable sets this organization name. It is used to create the organization stream on the blockchain and is also displayed in the frontend's top right corner. Minimal value: 1. Maximal value: 100. |
PORT | no | 8091 | The port used to expose the API for your installation. Example: If you run TruBudget locally and set API_PORT to 8080 , you can reach the API via localhost:8080/api . Value is a port with minimal value 0 and maximal value 65535 |
ORGANIZATION_VAULT_SECRET | yes | - | This is the key to en-/decrypt user data of an organization. If you want to add a new node for your organization, you want users to be able to log in on either node. Caution: If you want to run TruBudget in production, make sure NOT to use the default value from the .env.example file! Minimal value: 5. |
ROOT_SECRET | no | 8d0ab15d21b6d2c48d834bad4785a52126573906c84e6120506fce35f5ce4708 | The root secret is the password for the root user. If you start with an empty blockchain, the root user is needed to add other users, approve new nodes,.. If you don't set a value via the environment variable, the API generates one randomly and prints it to the console Caution: If you want to run TruBudget in production, make sure to set a secure root secret. Minimal value: 8. |
MULTICHAIN_RPC_HOST | no | localhost | The IP address of the blockchain (not multichain daemon,but they are usally the same) you want to connect to. |
MULTICHAIN_RPC_PORT | no | 8000 | The Port of the blockchain where the server is available for incoming http connections (e.g. readiness, versions, backup and restore) |
MULTICHAIN_PROTOCOL | no | http | The protocol used to expose the multichain daemon of your Trubudget blockchain installation(bc). The protocol used to connect to the multichain daemon(api). This will be used internally for the communication between the API and the multichain daemon. |
MULTICHAIN_RPC_USER | no | multichainrpc | The user used to connect to the multichain daemon. |
MULTICHAIN_RPC_PASSWORD | no | s750SiJnj50yIrmwxPnEdSzpfGlTAHzhaUwgqKeb0G1j | Password used by the API to connect to the blockchain. The password is set by the origin node upon start. Every beta node needs to use the same RPC password in order to be able to connect to the blockchain. Hint: Although the MULTICHAIN_RPC_PASSWORD is not required it is highly recommended to set an own secure one, at least 32 characters long. Minimal value: 32. |
BLOCKCHAIN_PORT | no | 8085 | The port used to expose the multichain daemon of your Trubudget blockchain installation(bc). The port used to connect to the multichain daemon(api). This will be used internally for the communication between the API and the multichain daemon. |
BLOCKCHAIN_PROTOCOL | no | http | The Protocol of the blockchain where the server is available for incoming http connections. |
SWAGGER_BASEPATH deprecated | no | - | deprecated This variable was used to choose which environment (prod or test) is used for testing the requests. The variable is deprecated now, as the Swagger documentation can be used for the prod and test environment separately. Example values: "/". |
JWT_ALGORITHM | no | HS256 | Algorithm used for signing and verifying JWTs. |
JWT_SECRET | yes (if JWT_ALGORITHM=RS256) | 9640f5d6c8af1bc72275 | A string that is used to sign JWT which are created by the authenticate endpoint of the api. If JWT_ALGORITHM is set to RS256 , this is required and holds BASE64 encoded PEM encoded private key for RSA. |
JWT_PUBLIC_KEY | yes (if JWT_ALGORITHM=RS256) | - | If JWT_ALGORITHM is set to RS256 , this is required and holds BASE64 encoded PEM encoded public key for RSA. |
DOCUMENT_FEATURE_ENABLED | no | - | If true, all uploaded documents are stored using trubudget's storage-service. If false, the document feature of TruBudget is disabled, and trying to upload a document will result in an error. |
DOCUMENT_EXTERNAL_LINKS_ENABLED | no | - | If true, it is possible to use external documents links also without TruBudget's storage-service. If false, the external documents links feature of TruBudget is still possible to use in case DOCUMENT_FEATURE_ENABLED equals "true". |
STORAGE_SERVICE_HOST | no | localhost | IP of connected storage service |
STORAGE_SERVICE_PORT | no | 8090 | Port of connected storage service |
STORAGE_SERVICE_PROTOCOL | no | http | Protocol of connected storage service. |
STORAGE_SERVICE_EXTERNAL_URL | yes (if DOCUMENT_FEATURE_ENABLED=true) | - | IP and port of own connected storage service accessible externally |
EMAIL_HOST | no | localhost | - |
EMAIL_PORT | no | 8089 | - |
EMAIL_PROTOCOL | no | http | Protocol of connected storage service. |
ACCESS_CONTROL_ALLOW_ORIGIN | no | * | Since the service uses CORS, the domain by which it can be called needs to be set. Setting this value to * means that it can be called from any domain. Read more about this topic here. |
NODE_ENV | no | production | If set to development api will allow any string as password. If set to production passwords must satisfy safePasswordSchema, see lib/joiValidation-.ts & -.spec.ts files |
ENCRYPTION_PASSWORD | no | - | If set, all data that is send to the MultiChain node and external storage will be symmetrically encrypted by the ENCRYPTION_PASSWORD |
SIGNING_METHOD | no | node | Possible signing methods are: node and user . Transactions on the chain will be signed using either the address of the node or the address of the specific user publishing that transaction. |
RATE_LIMIT | no | - | If set, API will limit the number of requests from any individual IP address to the set number per minute. Can be set to any number , but shouldn't be set too low. |
AUTHPROXY_ENABLED | no | - | Enables logging in using the authorization token from authentication proxy |
AUTHPROXY_JWS_SIGNATURE | yes (if AUTHPROXY_ENABLED=true) | - | secret/public key/certificate for verifying auth proxy token signature |
DB_TYPE | no | pg | - |
SQL_DEBUG | no | - | - |
REFRESH_TOKEN_STORAGE | no | - | Determining the type of storage for refresh tokens. Allowed values are "db" or "memory" or blank to disable refresh token functionality. |
API_DB_USER | yes (if REFRESH_TOKEN_STORAGE=db) | postgres | Database user for database connection, e.g. postgres |
API_DB_PASSWORD | yes (if REFRESH_TOKEN_STORAGE=db) | test | Database password for database connection |
API_DB_HOST | yes (if REFRESH_TOKEN_STORAGE=db) | localhost | Database host |
API_DB_NAME | yes (if REFRESH_TOKEN_STORAGE=db) | trubudget_email_service | Name of the used database Example values: "trubudget-db". |
API_DB_PORT | yes (if REFRESH_TOKEN_STORAGE=db) | 5432 | Database port, e.g. 5432 |
API_DB_SSL | yes (if REFRESH_TOKEN_STORAGE=db) | - | Database SSL connection. Allowed values: "true" or "false". |
API_DB_SCHEMA | yes (if REFRESH_TOKEN_STORAGE=db) | public | Database schema, e.g. "public". |
API_REFRESH_TOKENS_TABLE | yes (if REFRESH_TOKEN_STORAGE=db) | refresh_token | Name of table where refresh tokens will be stored, e.g. "refresh_token". |
SNAPSHOT_EVENT_INTERVAL | no | 3 | - |
SILENCE_LOGGING_ON_FREQUENT_ROUTES | no | - | Set to "true" if you want to hide route logging on frequent and technical endpoints like /readiness , /version , etc. |
APPLICATIONINSIGHTS_CONNECTION_STRING | no | - | Azure Application Insights Connection String |