Skip to content

Latest commit

 

History

History
114 lines (89 loc) · 11.4 KB

ENV_LIST.md

File metadata and controls

114 lines (89 loc) · 11.4 KB

List of Environment Variables

The list of environment variables that can be set for this system is as follows.

Basic Settings

Variable Name Required Details Example Default
APP_ENV False Running environment local / dev / live local
NETWORK False Running network IBET / IBETFIN IBET
WEB3_CHAINID False Blockchain network ID 1010032 IBET: 1500002, IBETFIN: 1010032
WEB3_HTTP_PROVIDER False Web3 provider http://localhost:8545 http://localhost:8545
COMPANY_LIST_URL True Company list URL https://dummy-company-list.boostry.co.jp --
COMPANY_LIST_LOCAL_MODE False Using the local mode of the company list 0 (not using) / 1 (using) 0
DATABASE_URL False Database URL postgresql://xxxx:xxxx@yyyy:5432/zzzz postgresql://ethuser:ethpass@localhost:5432/ethcache
TEST_DATABASE_URL False Test database URL (for development use) postgresql://xxxx:xxxx@yyyy:5432/zzzz postgresql://ethuser:ethpass@localhost:5432/ethcache_test
APP_LOGFILE False Output location for application logs /some/directory /dev/stdout (standard output)
ACCESS_LOGFILE False Output location for access logs /some/directory /dev/stdout (standard output)
TZ False Time Zone Europe/Berlin Asia/Tokyo
DEFAULT_CURRENCY False Default currency code EUR JPY

API Server Settings

The API server uses Gunicorn as the HTTP server. The following parameters can be set as environment variables as startup parameters for Gunicorn.

See Gunicorn's official documentation for details.

Variable Name Required Details Default
WORKER_COUNT False The number of worker processes. 2
WORKER_TIMEOUT False Workers silent for more than this many seconds are killed and restarted. 60
WORKER_MAX_REQUESTS False The maximum number of requests a worker will process before restarting. 0
WORKER_MAX_REQUESTS_JITTER False The maximum jitter to add to the max_requests setting. 0
KEEP_ALIVE False The number of seconds to wait for requests on a Keep-Alive connection. 2

Settings for each use case

Token

Variable Name Required Details Example Default
BOND_TOKEN_ENABLED False Using ibet Bond token (security token) 0 (not using) / 1 (using) 0
SHARE_TOKEN_ENABLED False Using ibet Share token (security token) 0 (not using) / 1 (using) 0
MEMBERSHIP_TOKEN_ENABLED False Using ibet Membership token 0 (not using) / 1 (using) 0
COUPON_TOKEN_ENABLED False Using ibet Coupon token 0 (not using) / 1 (using) 0
TOKEN_LIST_CONTRACT_ADDRESS True TokenList contract address 0x0000000000000000000000000000000000000000 --
PERSONAL_INFO_CONTRACT_ADDRESS True* PersonalInfo contract address (*Set if you enable security tokens) 0x0000000000000000000000000000000000000000 --
TOKEN_NOTIFICATION_ENABLED True* Use of token-related notification (*Set if you enable tokens) 0 (not using) / 1 (using) --
TOKEN_CACHE False Enable cache storage of token attribute data 0 (not using) / 1 (using) 1
TOKEN_CACHE_TTL False Token attribute data cache expiration time (seconds) 36000 43200
TOKEN_SHORT_TERM_CACHE_TTL False Token attribute data cache (Short-Term) expiration time (seconds) 60 40

Token Escrow

Variable Name Required Details Example Default
IBET_ESCROW_CONTRACT_ADDRESS False Ibet Escrow contract address 0x0000000000000000000000000000000000000000 --
IBET_SECURITY_TOKEN_ESCROW_CONTRACT_ADDRESS False Ibet Security Token Escrow contract address 0x0000000000000000000000000000000000000000 --

Token DVP

Variable Name Required Details Example Default
IBET_SECURITY_TOKEN_DVP_CONTRACT_ADDRESS False Ibet Security Token DVP contract address 0x0000000000000000000000000000000000000000 --

On-chain Exchange (Only for utility tokens)

Variable Name Required Details Example Default
PAYMENT_GATEWAY_CONTRACT_ADDRESS False PaymentGateway contract address 0x0000000000000000000000000000000000000000 --
IBET_MEMBERSHIP_EXCHANGE_CONTRACT_ADDRESS False IbetExchange contract address for Membership tokens 0x0000000000000000000000000000000000000000 --
IBET_COUPON_EXCHANGE_CONTRACT_ADDRESS False IbetExchange contract address for Coupon tokens 0x0000000000000000000000000000000000000000 --
EXCHANGE_NOTIFICATION_ENABLED True* Use of exchange-related notification (*Set only if you use IbetExchange) 0 (not using) / 1 (using) --

Blockchain Explorer

Variable Name Required Details Example Default
BC_EXPLORER_ENABLED False Parameter for starting the Blockchain Explorer 0 (not using) / 1 (using) 0

Email

Common

Variable Name Required Details Example Default
SMTP_METHOD False Email sending method 0:SMTP server, 1:Amazon SES 0
SMTP_SENDER_NAME False Sender name --
SMTP_SENDER_EMAIL False Sender email address example@example.com --

SMTP server

Variable Name Required Details Example Default
SMTP_SERVER_HOST False SMTP server name smtp.office365.com --
SMTP_SERVER_PORT False SMTP server port 587 --
SMTP_SERVER_ENCRYPTION_METHOD False SMTP server connection encryption method 0:STARTTLS, 1:SSL, 2:NO-ENCRYPT 0
SMTP_SENDER_PASSWORD False Sender email password (Only if needed) --

Amazon SES

Variable Name Required Details Example Default
AWS_SES_REGION_NAME False AWS region name us-east-1 --

Send settings

Variable Name Required Details Example Default
ALLOWED_EMAIL_DESTINATION_DOMAIN_LIST False Domains allowed to send email. Not set if all domains are allowed. example.com,example.net --
DISALLOWED_DESTINATION_EMAIL_ADDRESS_REGEX False Regular expression for destination email addresses that are not allowed to send ^[a-zA-Z0-9_.+-]+@example.com --

Chat Webhook

Variable Name Required Details Example Default
CHAT_WEBHOOK_URL False Chat webhook url https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX --