arrow-left

All pages
gitbookPowered by GitBook
1 of 2

Loading...

Loading...

Environment Variables

Variable Name
Description
Default

OPENFN_DATABASE_URL

The URL of the PostgreSQL database

postgresql://openfn:instant101@postgres-1:5432/lightning_dev

OPENFN_DISABLE_DB_SSL

Whether to disable SSL for the database connection

true

OPENFN_IS_RESETTABLE_DEMO

Whether the application is running in resettable demo mode

true

OPENFN_LISTEN_ADDRESS

The IP address to listen on

0.0.0.0

OPENFN_LOG_LEVEL

The log level for the application

debug

OPENFN_ORIGINS

The allowed origins for CORS

http://localhost:4000

OPENFN_PRIMARY_ENCRYPTION_KEY

The primary encryption key

KLu/IoZuaf+baDECd8wG4Z6auwNe6VAmwh9N8lWdJ1A=

OPENFN_SECRET_KEY_BASE

The secret key base

jGDxZj2O+Qzegm5wcZ940RfWO4D6RyU8thNCr5BUpHNwa7UNV52M1/Sn+7RxiP+f

OPENFN_WORKER_RUNS_PRIVATE_KEY

The private key for worker runs

LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2Z0lCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktnd2dnU2tBZ0VBQW9JQkFRREVtR3drUW5pT0hqVCsKMnkyRHFvRUhyT3dLZFI2RW9RWG9DeDE4MytXZ3hNcGthTFZyOFViYVVVQWNISGgzUFp2Z2UwcEIzTWlCWWR5Kwp1ajM1am5uK2JIdk9OZGRldWxOUUdpczdrVFFHRU1nTSs0Njhldm5RS0h6R29DRUhabDlZV0s0MUd5SEZCZXppCnJiOGx2T1A1NEtSTS90aE5pVGtHaUIvTGFLMldLcTh0VmtoSHBvaFE3OGIyR21vNzNmcWtuSGZNWnc0ZE43d1MKdldOamZIN3QwSmhUdW9mTXludUxSWmdFYUhmTDlnbytzZ0thc0ZUTmVvdEZIQkYxQTJjUDJCakwzaUxad0hmdQozTzEwZzg0aGZlTzJqTWlsZlladHNDdmxDTE1EZWNrdFJGWFl6V0dWc25FcFNiOStjcWJWUXRvdEU4QklON09GClRmaEx2M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UWngvMWtLa0w4Zm94TUlQN0FleW1zOWhUeWVybnkyMk9TVlBJSmN3dExqMUxTeDN3L0kKK0kyaVpsYVl1akVlZXpXbHY1S2R0cUNORjk3Zzh0ck1NTnMySVZKa1h1NXFwUk82V0ZXRzZGL2h4d0tCZ0hnNApHYUpFSFhIT204ekZTU2lYSW5FWGZKQmVWZmJIOUxqNzFrbVRlR3RJZTdhTlVHZnVxY1BYUGRiZUZGSHRsY2ZsCkx6dWwzS3V6VFExdEhGTnIyWkl5MTlQM1o1TSs4R2c5Y1FFeVRWYmlpV2xha2x0cmttRnRtQTI4bE0zVEZPWmkKUUNWMUZpZStjaWRVeC9qRnFma1F0c1VXQ2llSUxSazZOY1d0WGpXcEFvR0JBTGN6Y210VGlUUEFvWnk0MFV1QQpTOXpUd3RsamhmUWJEVTVjb21EcnlKcnFRU0VOdmQ2VW5HdW0zYVNnNk13dDc0NGxidDAyMC9mSGI0WTJkTGhMCmx4YWJ5b1dQUElRRUpLL1NNOGtURFEvYTRyME5tZzhuV3h5bGFLcHQ5WUhmZ2NYMkYzSzUrc0VSUGNFcVZlWFMKdWZkYXdYQVlFampZK3V2UHZ2YzU3RU1aCi0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K

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

The name of the OpenFn PostgreSQL database

lightning_dev

OPENFN_POSTGRESQL_USERNAME

The username for the OpenFn PostgreSQL database

openfn

OPENFN_POSTGRESQL_PASSWORD

The password for the OpenFn PostgreSQL database

instant101

OPENFN_WORKER_LIGHTNING_PUBLIC_KEY

The public key for the worker lightning

LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF4SmhzSkVKNGpoNDAvdHN0ZzZxQgpCNnpzQ25VZWhLRUY2QXNkZk4vbG9NVEtaR2kxYS9GRzJsRkFIQng0ZHoyYjRIdEtRZHpJZ1dIY3ZybzkrWTU1Ci9teDd6alhYWHJwVFVCb3JPNUUwQmhESURQdU92SHI1MENoOHhxQWhCMlpmV0ZpdU5Sc2h4UVhzNHEyL0piemoKK2VDa1RQN1lUWWs1Qm9nZnkyaXRsaXF2TFZaSVI2YUlVTy9HOWhwcU85MzZwSngzekdjT0hUZThFcjFqWTN4Kwo3ZENZVTdxSHpNcDdpMFdZQkdoM3kvWUtQcklDbXJCVXpYcUxSUndSZFFObkQ5Z1l5OTRpMmNCMzd0enRkSVBPCklYM2p0b3pJcFgyR2JiQXI1UWl6QTNuSkxVUlYyTTFobGJKeEtVbS9mbkttMVVMYUxSUEFTRGV6aFUzNFM3OUsKSndJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg

OPENFN_IMAGE

The image name for OpenFn

openfn/lightning:v2.9.5

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

OpenFn

hashtag
Introduction

Welcome to the documentation for the openfn package! This package is designed to provide a platform for seamless integration and automation of data workflows. Whether you are a developer, data analyst, or data scientist, this package will help you streamline your data processing tasks.

hashtag
Usage

Once you have added the openfn package, you can start using it in your projects. Here is how to instantiate the package

instant package init -n openfn --dev

hashtag
Demo

To get a hands-on experience with the openfn package, try out the demo. The demo showcases the package's capabilities and provides a sample project used to export data from CDR to NDR with transformations. It utilizes a Kafka queue and a custom adapter to map Bundles to be compliant with the FHIR Implementation Guide (IG).

hashtag
Getting Started

To access the demo, follow these steps:

  1. Visit the website.

  2. Use the following demo credentials

  1. Configure the Kafka trigger Change the trigger type from webhook to “Kafka Consumer” Enter in configuration details → see Kafka topic: {whichever you want to use} (e.g., “cdr-ndr”) Hosts: {cdr host name} Initial offset reset policy: earliest Connection timeout: 30 (default value, but can be adjusted) Warning: Check Disable this trigger to ensure that consumption doesn’t start until you are ready to run the workflow! Once unchecked, it will immediately start consuming messages off the topic.

hashtag
Documentation

For more detailed information on the openfn package and its functionalities, please refer to the . The documentation covers various topics, including installation instructions, usage guidelines, and advanced features.

OpenFn Demoarrow-up-right
docsarrow-up-right
official documentationarrow-up-right
username: root@openhim.org
password: instant101