eosjs를 이용한 eos API-Server만드는중(삽질#2)

in eos •  6 years ago 

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/

== config.ini ==

CORS때문에 삽집을 하다 보니 config.ini파일로 셋팅을 저장해 두고 추후 참고 하기 위해서 기록을 남겨둔다.

  • http-server-address를 수정하여 드디어 외부에서의 접속이 되었다.
# 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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

eos 버전이 올라가면서 nodeos와 keosd의 포트를 다르게 설정하도록 변경되어 위의 keosd의 기본 config.ini를 사용하면 keosd에 제대로 접속하지 못하는 현상이 발생한다.

기본 config.ini을 수정하여 사용하고 wallet용 config파일에서는 plugin을 제거 하여야 한다.
https://developers.eos.io/eosio-nodeos/docs/configuration-file

Congratulations @philosup! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Do not miss the last post from @steemitboard:

Carnival Challenge - Collect badge and win 5 STEEM
Vote for @Steemitboard as a witness and get one more award and increased upvotes!

Congratulations @philosup! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!