You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-26Lines changed: 40 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,47 @@
1
-
# Introduction
2
-
This module provides s3-compatible API to 0chain allocation using minio-gateway Interface.
3
-
User can set their access-key and secret-key before running zs3Server. So basically, zs3server is an http server that provides s3 compatible api so that clients that are already s3 compatible can easily communicates with 0chain allocationcan. Its just a plug and play.
1
+
# zs3server - a no-code decentralized storage server
4
2
5
-
# Architecture
3
+
zs3server provides a no-code s3-compatible decentralized storage server on Züs allocation using a minio-gateway interface.
[Züs](https://zus.network/) is a high-performance cloud on a fast blockchain offering privacy and configurable uptime. It is an alternative to traditional cloud S3 and has shown better performance on a test network due to its parallel data architecture. The technology uses erasure code to distribute the data between data and parity servers. Züs storage is configurable to provide flexibility for IT managers to design for desired security and uptime, and can design a hybrid or a multi-cloud architecture with a few clicks using [Blimp's](https://blimp.software/) workflow, and can change redundancy and providers on the fly.
14
+
15
+
For instance, the user can start with 10 data and 5 parity providers and select where they are located globally, and later decide to add a provider on-the-fly to increase resilience, performance, or switch to a lower cost provider.
16
+
17
+
Users can also add their own servers to the network to operate in a hybrid cloud architecture. Such flexibility allows the user to improve their regulatory, content distribution, and security requirements with a true multi-cloud architecture. Users can also construct a private cloud with all of their own servers rented across the globe to have a better content distribution, highly available network, higher performance, and lower cost.
18
+
19
+
[The QoS protocol](https://medium.com/0chain/qos-protocol-weekly-debrief-april-12-2023-44524924381f) is time-based where the blockchain challenges a provider on a file that the provider must respond within a certain time based on its size to pass. This forces the provider to have a good server and data center performance to earn rewards and income.
20
+
21
+
The [privacy protocol](https://zus.network/build) from Züs is unique where a user can easily share their encrypted data with their business partners, friends, and family through a proxy key sharing protocol, where the key is given to the providers, and they re-encrypt the data using the proxy key so that only the recipient can decrypt it with their private key.
22
+
23
+
Züs has ecosystem apps to encourage traditional storage consumption such as [Blimp](https://blimp.software/), a S3 server and cloud migration platform, and [Vult](https://vult.network/), a personal cloud app to store encrypted data and share privately with friends and family, and [Chalk](https://chalk.software/), a zero upfront cost permanent storage solution for NFT artists.
24
+
25
+
Other apps are [Bolt](https://bolt.holdings/), a wallet that is very secure with air-gapped 2FA split-key protocol to prevent hacks from compromising your digital assets, and it enables you to stake and earn from the storage providers; [Atlus](https://atlus.cloud/), a blockchain explorer and [Chimney](https://demo.chimney.software/), which allows anyone to join the network and earn using their server or by just renting one, with no prior knowledge required.
26
+
27
+
## Architecture
6
28
7
29

8
30
9
31
There are three main components that will be installed in the customer server.
10
32
11
-
1. ZS3Server is the main component which will communicate directly with 0chain allocation
33
+
1. ZS3Server is the main component that will communicate directly with Züs storage.
12
34
13
-
2.[LogSereach](/logsearchapi/README.md) API is the log component which will store the audit log from S3 server and It will be consumed using ZS3 API
35
+
2.[LogSearch](/logsearchapi/README.md) API is the log component that will store the audit log from the S3 server and it will be consumed using ZS3 API
14
36
15
37
3.[MinioClient](/client-api/README.md) is the component that will communicate directly to the zs3server and it is protected using access and secret key.
16
38
39
+
## Building zs3-server
40
+
Prerequisites to run MinIO ZCN gateway:
41
+
-[A wallet.json created using zwalletcli](https://github.com/0chain/zwalletcli#creating-and-restoring-wallets)
Note: allocation and configDir both are optional. By default configDir takes ~/.zcn as configDir and if allocation is not provided in command then it will look for allocation.txt file in configDir directory.
31
54
```
32
-
33
55
> If you want to debug on local you might want to build with `-gcflags="all=-N -l"` flag to view all the objects during debugging.
34
56
35
-
## Run using docker
36
-
37
-
To build and run minio sevrer component in any machine you will need first to install docker and docker-compose
38
-
39
-
1. Make sure docker and docker-compose in your machine
57
+
## Running zs3-server
40
58
41
-
2. Make sure you have the allocation ready in the default folder ``~/.zcn``
42
-
43
-
3. Run docker-compose command like the following
59
+
1. To build and run the minio server component you need to install [docker](https://www.docker.com/products/docker-desktop/).
44
60
61
+
2. Run the docker-compose command inside the zs3server directory./
45
62
```
46
63
docker-compose -f environment/docker-compose.yaml up -d
47
64
```
65
+
3. Make sure allocation.txt file exist in the default folder ``~/.zcn``
48
66
49
-
4. Now you can interact with the clint API follow this [doc](/client-api/README.md)
50
-
51
-
5. You can also interact with the logsearch API by following this [doc](/logsearchapi/README.md)
52
-
53
-
## Test using MinIO Client `mc`
67
+
## Test MinIO Client
54
68
55
-
`mc` provides a modern alternative to UNIX commands such as ls, cat, cp, mirror, diff etc. It supports filesystems and Amazon S3compatible cloud storage services.
69
+
MinIO client `mc` provides a modern alternative to UNIX commands such as ls, cat, cp, mirror, diff, etc. It supports filesystems and Amazon S3-compatible cloud storage services. To interact with the client API follow this [doc](/client-api/README.md). You can also interact with the log search API by following this [doc.](/logsearchapi/README.md)
56
70
57
-
###Configure `mc`
71
+
## Configure MinIO Client
58
72
```
59
73
mc config host add zcn http://localhost:9000 miniouser miniopassword
0 commit comments