eosjs를 이용한 eos API-Server만드는중(삽질#1)
(https://steemit.com/eos/@philosup/eosjs-api-server)
=============================================================
nodeos 실행 옵션
--config-dir ~/eosio-wallet/
-config.ini파일 위치를 설정.
nodeos --config-dir ~/eosio-wallet/
CORS때문에 삽집을 하다 보니 config.ini파일로 셋팅을 저장해 두고 추후 참고 하기 위해서 기록을 남겨둔다.
# The local IP and port to listen for incoming http connections; set blank to disable. (eosio::http_plugin)
http-server-address = 127.0.0.1:8888
# The local IP and port to listen for incoming https connections; leave blank to disable. (eosio::http_plugin)
# https-server-address =
# Filename with the certificate chain to present on https connections. PEM format. Required for https. (eosio::http_plugin)
# https-certificate-chain-file =
# Filename with https private key in PEM format. Required for https (eosio::http_plugin)
# https-private-key-file =
# Specify the Access-Control-Allow-Origin to be returned on each request. (eosio::http_plugin)
access-control-allow-origin = *
# Specify the Access-Control-Allow-Headers to be returned on each request. (eosio::http_plugin)
# access-control-allow-headers =
# Specify the Access-Control-Max-Age to be returned on each request. (eosio::http_plugin)
# access-control-max-age =
# Specify if Access-Control-Allow-Credentials: true should be returned on each request. (eosio::http_plugin)
access-control-allow-credentials = false
# The path of the wallet files (absolute path or relative to application data dir) (eosio::wallet_plugin)
wallet-dir = "."
# Timeout for unlocked wallet in seconds (default 900 (15 minutes)). Wallets will automatically lock after specified number of seconds of inactivity. Activity is defined as any wallet command e.g. list-wallets. (eosio::wallet_plugin)
unlock-timeout = 900
# eosio key that will be imported automatically when a wallet is created. (eosio::wallet_plugin)
# eosio-key =
# Plugin(s) to enable, may be specified multiple times
plugin = eosio::chain_api_plugin
plugin = eosio::history_api_plugin
plugin = eosio::http_client_plugin
plugin = eosio::http_plugin
plugin = eosio::producer_plugin
# producer name
producer-name = eosio
# custom
enable-stale-production = true