Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added labs/img/image_2025-11-17_21-11-53.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-27-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-27-07_(2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-27-07_(3).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-27-07_(4).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-27-07_(5).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-40-41.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/img/image_2025-11-17_21-40-45.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions labs/lab11/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -543,3 +543,4 @@ <h3>Grading & Feedback</h3>
</footer>
</body>
</html>

123 changes: 123 additions & 0 deletions labs/submission11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Lab 11 — Decentralized Web Hosting with IPFS & 4EVERLAND

## Task 1 — Local IPFS Node Setup and File Publishing

### 1.1 Running a Local IPFS Node

A local IPFS node was deployed inside a Docker container using the official `ipfs/kubo:latest` image:

```bash
docker run -d --name ipfs_node `
-v ipfs_staging:/export `
-v ipfs_data:/data/ipfs `
-p 4001:4001 `
-p 8080:8080 `
-p 5001:5001 `
ipfs/kubo:latest
```

The node successfully started and exposes:
- **Swarm port:** 4001
- **Gateway:** 8080
- **API:** 5001

### 1.2 Peer Connectivity

```bash
docker exec ipfs_node ipfs swarm peers | Measure-Object
```

**Output:**

```
Count : 5
```

### 1.3 Bandwidth Statistics

```bash
docker exec ipfs_node ipfs stats bw
```

**Output:**

```
TotalIn: 2.0 MB
TotalOut: 261 kB
RateIn: 0 B/s
RateOut: 0 B/s
```

### 1.4 Publishing a File to IPFS

A test file was created and added to IPFS.

**CID:**

```
QmXPXjG9aUDySmvwpCL3jCk5WBmsUNwvXBUXT75JU9SSUf
```

Local gateway:

```
http://127.0.0.1:8080/ipfs/QmXPXjG9aUDySmvwpCL3jCk5WBmsUNwvXBUXT75JU9SSUf
```

---

## Task 2 — Static Site Deployment with 4EVERLAND

### 2.1 Static Site Setup

Static site stored in:

```
labs/lab11/app/index.html
```

### 2.2 Deployment Configuration

- **Branch:** feature/lab11
- **Framework preset:** Other
- **Root Directory:** ./labs/lab11/app
- **Output Directory:** ./
- **Build Command:** *(empty)*

Deployment succeeded.

### 2.3 Deployment Output

**CID:**

```
bafybeicipxtm2wcpbxqsrc4hfwzwmdh2bfy56yskag5cwgijxbqeldyn734
```

**4EVERLAND domain:**

```
https://f25-devops-intro-uuh5aro9-ily17as.ipfs.4everland.app
```

### 2.4 Verification

- Site opens via 4EVERLAND domain
- Site opens via IPFS public gateway

---

## Reflection

This lab demonstrates practical decentralized hosting using IPFS and 4EVERLAND.


Screens:
![1](img/image_2025-11-17_21-11-53.png)
![2](img/image_2025-11-17_21-27-07_(2).png)
![3](img/image_2025-11-17_21-27-07_(3).png)
![4](img/image_2025-11-17_21-27-07_(4).png)
![5](img/image_2025-11-17_21-27-07_(5).png)
![6](img/image_2025-11-17_21-27-07.png)
![7](img/image_2025-11-17_21-40-41.png)
![8](img/image_2025-11-17_21-40-45.png)
1 change: 1 addition & 0 deletions test-ipfs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello from Lab 11