Skip to content

Commit 77fb504

Browse files
authored
Update README.md
1 parent f825a9d commit 77fb504

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DebianRepo - Dynamic Debian Package Repository in .NET
1+
# DebianRepository.NET - Simple Dynamic Debian Package Repository in .NET
22

33
This project is a self-contained Debian APT repository written in C# using ASP.NET Core MVC. It allows uploading `.deb` files, dynamically generating the `Packages` and `Release` files, and serving them with GPG signing—all in memory.
44

@@ -17,23 +17,24 @@ This project is a self-contained Debian APT repository written in C# using ASP.N
1717
- `GET /repo/dists/stable/main/binary-amd64/Packages` - Package index
1818
- `GET /repo/pool/main/{filename}` - Download `.deb` file
1919

20-
## Running via Docker
20+
## How to host your own Debian apt repository
21+
### Running via Docker
2122

2223
```bash
2324
docker build -t debianrepo .
2425
docker run -p 5048:5048 -e GPG_PASSPHRASE="YOUR_GPG_PASSPHRASE" -e JWT_SECRET="YOUR_JWT_SECRET" -e DEB_STORAGE_PATH="/storage/" -v /path/to/private.asc:/private.asc -v /path/to/deb/file/storage:/storage debianrepo
2526
```
2627

27-
## Debian Client Setup
28+
### Debian Client Setup
2829

2930
```bash
30-
curl -fsSL http://localhost:5048/repo/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/debrepo.gpg > /dev/null
31+
curl -fsSL http://localhost:5048/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/debrepo.gpg > /dev/null
3132
echo "deb [signed-by=/etc/apt/trusted.gpg.d/debrepo.gpg] http://localhost:5048/repo stable main" | sudo tee /etc/apt/sources.list.d/debrepo.list
3233
sudo apt update
3334
sudo apt install your-package-name
3435
```
3536

36-
## Notes
37+
### Notes
3738

3839
- You must have a RSA 4096 private-key in `.asc` format with a passphrase
3940
- HTTPS is not configured in Docker (you can handle that via reverse proxy).

0 commit comments

Comments
 (0)