skalenetwork/filestorage

As USER I want to download files through URL

sync-by-unito opened this issue · 4 comments

We need to allow users to download files from FileStorage through URL. Solidity contracts will have access to FileStorage through FileStorage contract and readChunk functionality.

Proposed solution:

  • Add NGINX Webserver docker container to each SKALE node.
  • Run on standard ports: HTTP_PORT = 80 and HTTPS_PORT = 443.
  • The HTTPS port will use the SSL certificate already available on each SKALE node.
  • Provide through NGINX read-only access to each file in filestorage.
  • Use the following URL convention : http(s)/NODE_DOMAIN_NAME/SCHAIN_ID Example: http://skalenode1.com/1234/cat.
  • The config file of the NGINX webserver will translate incoming URLs into locations in filestorage.

┆Issue is synchronized with this Jira Story

➤ Automation for Jira commented:

Corresponding Pull Request skalenetwork/docker-lvmpy#90

➤ Automation for Jira commented:

Corresponding Pull Request skalenetwork/node-cli#477

➤ Automation for Jira commented:

Corresponding Pull Request skalenetwork/skale-node#266

➤ Alex Danko commented:

works for
node-cli: 2.0.0-develop.24
admin: 2.0.0-develop.33