ursa

所属分类:IPFS
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-06-13 16:44:59
上 传 者sh-1993
说明:  Ursa是一个去中心化的内容交付网络,不受审查,不受信任,不会影响吞吐量和延迟,
(Ursa, a decentralized content delivery network that is censorship-resistant and trustless without compromise on throughput and latency,)

文件列表:
.dockerignore (7, 2023-11-29)
CODE_OF_CONDUCT.md (5220, 2023-11-29)
Cargo.toml (4200, 2023-11-29)
Dockerfile (830, 2023-11-29)
Dockerfile-gateway (1052, 2023-11-29)
Dockerfile-proxy (768, 2023-11-29)
LICENSE-APACHE (11357, 2023-11-29)
LICENSE-MIT (1046, 2023-11-29)
Makefile (1128, 2023-11-29)
contracts/ (0, 2023-11-29)
contracts/lib/ (0, 2023-11-29)
contracts/lib/forge-std/ (0, 2023-11-29)
contracts/lib/solmate/ (0, 2023-11-29)
contracts/src/ (0, 2023-11-29)
contracts/src/Epoch.sol (3994, 2023-11-29)
contracts/src/FLK.sol (1978, 2023-11-29)
contracts/src/NodeRegistry.sol (3212, 2023-11-29)
crates/ (0, 2023-11-29)
crates/ursa-application/ (0, 2023-11-29)
crates/ursa-application/Cargo.toml (854, 2023-11-29)
crates/ursa-application/genesis.toml (58709, 2023-11-29)
crates/ursa-application/src/ (0, 2023-11-29)
crates/ursa-application/src/app.rs (1167, 2023-11-29)
crates/ursa-application/src/bin/ (0, 2023-11-29)
crates/ursa-application/src/bin/genesis.rs (2880, 2023-11-29)
crates/ursa-application/src/bin/genesis_committee.toml (2069, 2023-11-29)
... ...

# Archived After months developing Fleek Network in this repository, we have realized the need to reboot the codebase, our engineers are actively working harder than ever on the upcoming new iteration of the protocol (it's gonna be cool ). We appreciate all of the love you have given to this repository with your stars. But since we have no activity here, we have decided to archive this repository, and let it live forever as a part of the history of Fleek Network. Expect a new source code and a more detailed breakdown of the changes and what motivated us to do so. # Ursa > Ursa, a decentralized content delivery network. ## Run a node ### Run with cli > Note: Full nodes are intended to run behind a reverse proxy providing ssl and listening on 80/443. See [# Run with Docker Compose](https://github.com/fleek-network/ursa/blob/master/#run-with-docker-compose) for a preconfigured setup. #### Dependencies - make - rust (`^1.65.0`) - build-essential - libclang - cmake - protoc #### Instructions Build and install the latest *HEAD* version: ```sh make install ``` You can run the node with `ursa` command. This will run the node with default parameters. #### CLI Flags - `--config` A toml file containing relevant configurations. - Default value: *empty*. - `--rpc` Allow rpc to be active or not. - Default value: *true*. - `--rpc-port` Port used for JSON-RPC communication. - Default value: *4069*. #### CLI Subcommands - `rpc put` Put a CAR file into the local node - `rpc get` Get content for a cid from the local node, and save to path #### Configuration The default ursa config is loaded from `~/.ursa/config.toml`, but can be overridden using the `--config` flag. ```toml [network_config] mdns = false relay_server = true autonat = true relay_client = true bootstrapper = false bootstrap_nodes = ["/ip4/127.0.0.1/tcp/6009"] swarm_addrs = ["/ip4/0.0.0.0/tcp/6009", "/ip4/0.0.0.0/udp/4890/quic-v1"] database_path = "~/.ursa/data/ursa_db" keystore_path = "~/.ursa/keystore" identity = "default" [provider_config] # Public IP address of the node addresses = ["/ip4/127.0.0.1/tcp/4069"] indexer_url = "https://dev.cid.contact" database_path = "~/.ursa/data/index_provider_db" [server_config] port = 4069 addr = "0.0.0.0" ``` ### Run with Docker Compose You can run the full node with some supporting infrastructure through docker-compose. This includes: - Ursa Node - Nginx reverse proxy - Let's Encrypt ssl - Prometheus Metrics - Grafana Dashboard #### Dependencies - Docker (with Buildkit) - Docker Compose #### Instructions > Make sure to edit [nginx/app.conf](https://github.com/fleek-network/ursa/blob/master//docker/full-node/data/nginx/app.conf) with your node's domain name, and run [init-letsencrypt.sh](https://github.com/fleek-network/ursa/blob/master//docker/full-node/init-letsencrypt.sh). Detailed instructions [here](https://github.com/fleek-network/ursa/blob/master//docker/full-node/README.md) Build the node and fetch infra images: ```sh make compose-build ``` Start up node and infra: ```sh make compose-up ``` Shut down node and infra: ```sh make compose-down ``` #### Configuration By default, the compose will bind-mount the host folder `~/.ursa/` to the node. Any configuration/keys/database files can be located and edited on the host machine at that path. Any changes requires the node to be restarted to take effect ### RPC & HTTP To access the rpc you can do through the http JSON-RPC api. The endpoint to request is **`/rpc/v0`**. The server can be accessible in port `4069` for local development and in port `80/443` through the reverse proxy (nginx at the moment). ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License [MIT](https://github.com/fleek-network/ursa/blob/master/https://github.com/fleek-network/ursa/blob/main/LICENSE-MIT) [APACHE 2.0](https://github.com/fleek-network/ursa/blob/master/https://github.com/fleek-network/ursa/blob/main/LICENSE-APACHE)

近期下载者

相关文件


收藏者