安装 FS3
Last updated
Last updated
A PostgreSQL database is required to be pre-built for FS3 server usage. Check on installation and connection instructions.
Install PostgreSQL on Ubuntu
First, execute the following command to create the file repository configuration:
Second, import the repository signing key:
Third, update the package list:
Finally, install the latest version of PostgreSQL:
Connect to the PostgreSQL database server via psql
Next, It’ll prompt for the password of the current user. You need to provide the password and hit the Enter
keyboard.
You’ll access the postgres prompt like this:
To quit the PostgreSQL prompt, you run the following command:
This above command will bring you back to the postgres Linux command prompt.
To return to your regular system user, you execute the exit
command like this:
Create PostgreSQL Database
Create USER and PASSWORD as 'root'
Build UI
Install Filecoin dependency
Install go module dependency
Build up Tables in Postgresql Database
Set up FS3 configuration
Set up and customize FS3 configuration by making modifications on .env
file, which stores your information as environment variables. An example config is given as .env.example
for reference.
.env
file based on your use cases:SWAN_ADDRESS : The address of filswan platform, default as https://api.filswan.com
.
FS3_VOLUME_ADDRESS : The address of FS3 VOLUME, default as ~/minio-data
. If changed, the FS3 server start command has to be changed accordingly.
FS3_WALLET_ADDRESS : A wallet address is a must for sending deals to miner.
CAR_FILE_SIZE : A fixed car file size in bytes need to be predefined before generating car files for trunk via variable CarFileSize
, such as 8589934592
for 8Gb as default.
IPFS_API_ADDRESS : An available ipfs address with port need to be set up. For example, https://MyIpfsUrl:Port
.
IPFS_GATEWAY : An available ipfs address with port need to be set up for file downloading. For example, https://MyIpfsGatewayUrl:Port
.
Build up FS3 server
Run the FS3 Server
Access Key and Secret Key
The FS3 deployment starts using default root credentials minioadmin:minioadmin
but you can change it with your own credentials.
Change your Access Key and Secret Key
If you change the credential, build up FS3 server again to make it take effect. Then re-run the fs3 server.
SWAN_TOKEN : A valid swan token is required for posting task on swan platform. It can be received after creating an account on . Check for more details on how to get authorization token.
You can test the deployment using the FS3 Browser, an embedded web-based object browser built into FS3 Server. Point a web browser running on the host machine to and log in with the root credentials. You can use the Browser to create buckets, upload objects, send deals, retrieve data and browse the contents of the FS3 server.
You can also connect using any S3-compatible tool, such as the commandline tool.