From 65db2d18ad8e3d5096b51881f0189f9f7c4f51f5 Mon Sep 17 00:00:00 2001 From: drono Date: Tue, 3 Dec 2024 18:19:28 +0300 Subject: [PATCH 1/3] Update docs --- documentation/SUMMARY.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/documentation/SUMMARY.md b/documentation/SUMMARY.md index cff0e3ab..f8c91169 100644 --- a/documentation/SUMMARY.md +++ b/documentation/SUMMARY.md @@ -52,6 +52,11 @@ - [Reverse Proxy Nginx](packages/reverse-proxy-nginx/README.md) - [Local Development](packages/reverse-proxy-nginx/local-development.md) - [Environment Variables](packages/reverse-proxy-nginx/environment-variables.md) + - [OpenFn](packages/openfn/README.md) + - [Environment Variables](packages/openfn/environment-variables.md) + - [Reverse Proxy Traefik](packages/reverse-proxy-traefik/README.md) + - [Local Development](packages/reverse-proxy-traefik/local-development.md) + - [Environment Variables](packages/reverse-proxy-traefik/environment-variables.md) - [🗒️ Cheat sheet](cheat-sheet.md) - [Architecture](architecture.md) - [Guides](guides/README.md) From 2f5da52ef661e709b365798437c0d771769df85b Mon Sep 17 00:00:00 2001 From: drono Date: Tue, 3 Dec 2024 18:23:36 +0300 Subject: [PATCH 2/3] remove broken link --- documentation/SUMMARY.md | 1 - 1 file changed, 1 deletion(-) diff --git a/documentation/SUMMARY.md b/documentation/SUMMARY.md index f8c91169..f9f161ae 100644 --- a/documentation/SUMMARY.md +++ b/documentation/SUMMARY.md @@ -55,7 +55,6 @@ - [OpenFn](packages/openfn/README.md) - [Environment Variables](packages/openfn/environment-variables.md) - [Reverse Proxy Traefik](packages/reverse-proxy-traefik/README.md) - - [Local Development](packages/reverse-proxy-traefik/local-development.md) - [Environment Variables](packages/reverse-proxy-traefik/environment-variables.md) - [🗒️ Cheat sheet](cheat-sheet.md) - [Architecture](architecture.md) From 2ab5b0d6d0917152dd70236891e28632e2946a9c Mon Sep 17 00:00:00 2001 From: drono Date: Tue, 3 Dec 2024 18:35:15 +0300 Subject: [PATCH 3/3] Update openfn default variables --- .../packages/openfn/environment-variables.md | 196 ++++++++---------- 1 file changed, 90 insertions(+), 106 deletions(-) diff --git a/documentation/packages/openfn/environment-variables.md b/documentation/packages/openfn/environment-variables.md index 7ce16508..ef9a6c00 100644 --- a/documentation/packages/openfn/environment-variables.md +++ b/documentation/packages/openfn/environment-variables.md @@ -5,180 +5,164 @@ Variable Name Description - Type - Relevance - Required Default - DATABASE_URL + OPENFN_DATABASE_URL The URL of the PostgreSQL database - - - - + postgresql://openfn:instant101@postgres-1:5432/lightning_dev - DISABLE_DB_SSL + OPENFN_DISABLE_DB_SSL Whether to disable SSL for the database connection - - - - + true - IS_RESETTABLE_DEMO + OPENFN_IS_RESETTABLE_DEMO Whether the application is running in resettable demo mode - - - - + true - LISTEN_ADDRESS + OPENFN_LISTEN_ADDRESS The IP address to listen on - - - - + 0.0.0.0 - LOG_LEVEL + OPENFN_LOG_LEVEL The log level for the application - - - - + debug - ORIGINS + OPENFN_ORIGINS The allowed origins for CORS - - - - + http://localhost:4000 - PRIMARY_ENCRYPTION_KEY + OPENFN_PRIMARY_ENCRYPTION_KEY The primary encryption key - - - - + KLu/IoZuaf+baDECd8wG4Z6auwNe6VAmwh9N8lWdJ1A= - SECRET_KEY_BASE + OPENFN_SECRET_KEY_BASE The secret key base - - - - + jGDxZj2O+Qzegm5wcZ940RfWO4D6RyU8thNCr5BUpHNwa7UNV52M1/Sn+7RxiP+f - WORKER_RUNS_PRIVATE_KEY + OPENFN_WORKER_RUNS_PRIVATE_KEY The private key for worker runs - - - - + LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2Z0lCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktnd2dnU2tBZ0VBQW9JQkFRREVtR3drUW5pT0hqVCsKMnkyRHFvRUhyT3dLZFI2RW9RWG9DeDE4MytXZ3hNcGthTFZyOFViYVVVQWNISGgzUFp2Z2UwcEIzTWlCWWR5Kwp1ajM1am5uK2JIdk9OZGRldWxOUUdpczdrVFFHRU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2UldxMXVwCmJSWng4ZGpzZU0vQ09kZnBUcmJuMnk5dVc3Q1pBNFVPQ2s4REcxZ3ZENVVDYlpEUVdMaUp5RzZGdG5OdGgvaU8KT1dJM0UyczZOS0VMMU1NVzh5QWZwNzV4Ung5cnNaQzI2UEtqQ0pWL2lTVjcyNlQ1ZTFzRG5sZUtBb0JFZnlDRgpvbEhhMmhybWxRS0JnUURHT1YyOWd1K1NmMng1SVRTWm8xT1ZxbitGZDhlZno1d3V5YnZ3Rm1Fa2V1YUdXZDh1CnJ4UFM3MkJ6K0Y1dUJUWngvMWtLa0w4Zm94TUlQN0FleW1zOWhUeWVybnkyMk9TVlBJSmN3dExqMUxTeDN3L0kKK0kyaVpsYVl1akVlZXpXbHY1S2R0cUNORjk3Zzh0ck1NTnMySVZKa1h1NXFwUk82V0ZXRzZGL2h4d0tCZ0hnNApHYUpFSFhIT204ekZTU2lYSW5FWGZKQmVWZmJIOUxqNzFrbVRlR3RJZTdhTlVHZnVxY1BYUGRiZUZGSHRsY2ZsCkx6dWwzS3V6VFExdEhGTnIyWkl5MTlQM1o1TSs4R2c5Y1FFeVRWYmlpV2xha2x0cmttRnRtQTI4bE0zVEZPWmkKUUNWMUZpZStjaWRVeC9qRnFma1F0c1VXQ2llSUxSazZOY1d0WGpXcEFvR0JBTGN6Y210VGlUUEFvWnk0MFV1QQpTOXpUd3RsamhmUWJEVTVjb21EcnlKcnFRU0VOdmQ2VW5HdW0zYVNnNk13dDc0NGxidDAyMC9mSGI0WTJkTGhMCmx4YWJ5b1dQUElRRUpLL1NNOGtURFEvYTRyME5tZzhuV3h5bGFLcHQ5WUhmZ2NYMkYzSzUrc0VSUGNFcVZlWFMKdWZkYXdYQVlFampZK3V2UHZ2YzU3RU1aCi0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K + + + OPENFN_WORKER_SECRET + The secret key for the worker + secret_here POSTGRES_USER The username for the PostgreSQL database - - - - + postgres POSTGRES_SERVICE The service name for the PostgreSQL database - - - - + postgres-1 POSTGRES_DATABASE The name of the PostgreSQL database - - - - + postgres POSTGRES_PASSWORD The password for the PostgreSQL database - - - - + instant101 POSTGRES_PORT The port number for the PostgreSQL database - - - - + 5432 - OpenFn_POSTGRESQL_DB + OPENFN_POSTGRESQL_DB The name of the OpenFn PostgreSQL database - - - - + lightning_dev - OpenFn_POSTGRESQL_USERNAME + OPENFN_POSTGRESQL_USERNAME The username for the OpenFn PostgreSQL database - - - - + openfn - OpenFn_POSTGRESQL_PASSWORD + OPENFN_POSTGRESQL_PASSWORD The password for the OpenFn PostgreSQL database - - - - + instant101 - WORKER_LIGHTNING_PUBLIC_KEY + OPENFN_WORKER_LIGHTNING_PUBLIC_KEY The public key for the worker lightning - - - - + LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF4SmhzSkVKNGpoNDAvdHN0ZzZxQgpCNnpzQ25VZWhLRUY2QXNkZk4vbG9NVEtaR2kxYS9GRzJsRkFIQng0ZHoyYjRIdEtRZHpJZ1dIY3ZybzkrWTU1Ci9teDd6alhYWHJwVFVCb3JPNUUwQmhESURQdU92SHI1MENoOHhxQWhCMlpmV0ZpdU5Sc2h4UVhzNHEyL0piemoKK2VDa1RQN1lUWWs1Qm9nZnkyaXRsaXF2TFZaSVI2YUlVTy9HOWhwcU85MzZwSngzekdjT0hUZThFcjFqWTN4Kwo3ZENZVTdxSHpNcDdpMFdZQkdoM3kvWUtQcklDbXJCVXpYcUxSUndSZFFObkQ5Z1l5OTRpMmNCMzd0enRkSVBPCklYM2p0b3pJcFgyR2JiQXI1UWl6QTNuSkxVUlYyTTFobGJKeEtVbS9mbkttMVVMYUxSUEFTRGV6aFUzNFM3OUsKSndJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg - WORKER_SECRET - The secret key for the worker - - - - - - - OpenFn_IMAGE + OPENFN_IMAGE The image name for OpenFn - - - - + openfn/lightning:v2.9.5 - OpenFn_WORKER_IMAGE + OPENFN_WORKER_IMAGE The image name for OpenFn worker - - - - + openfn/ws-worker:latest + + + OPENFN_KAFKA_TRIGGERS_ENABLED + Whether Kafka triggers are enabled + true + + + OPENFN_API_KEY + The API key for OpenFn + apiKey + + + OPENFN_ENDPOINT + The endpoint for OpenFn + http://localhost:4000 + + + OPENFN_DOCKER_WEB_CPUS + The number of CPUs allocated to the web container + 2 + + + OPENFN_DOCKER_WEB_MEMORY + The amount of memory allocated to the web container + 4G + + + OPENFN_DOCKER_WORKER_CPUS + The number of CPUs allocated to the worker container + 2 + + + OPENFN_DOCKER_WORKER_MEMORY + The amount of memory allocated to the worker container + 4G + + + FHIR_SERVER_BASE_URL + The base URL for the FHIR server + http://openhim-core:5001 + + + FHIR_SERVER_USERNAME + The username for the FHIR server + openfn_client + + + FHIR_SERVER_PASSWORD + The password for the FHIR server + openfn_client_password