Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haiku/infrastructure
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f0d58b015d45
Choose a base ref
...
head repository: haiku/infrastructure
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 194f10962244
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 16, 2021

  1. Copy the full SHA
    194f109 View commit details
Showing with 9 additions and 3 deletions.
  1. +9 −3 docs/ipfs/ipfs-gateway.md
12 changes: 9 additions & 3 deletions docs/ipfs/ipfs-gateway.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Setting up a public IPFS Gateway

A quick run down of the steps needed to setup a gateway
A quick run down of the steps needed to setup a public IPFS gateway which only
serves Haiku software / repositories.

## Requirements

@@ -67,11 +68,16 @@ ipfs config show
* Make sure the StorageMax is set to a reasonable size (90% of available free space?)
* This is the "cache", when full it will be garbage collected

```
systemctl start ipfs
journalctl -u ipfs
```

**Setup IPFS Reverse Proxy**

> This enables https, and allows you to host hpkg.haiku-os.org on other domains
> without needing to setup special DNS records.
> Requests are reformed from rendering the native domain to rendering hpkg.haiku-os.org
> without needing to setup special DNS records. This configuration also prevents
> usage of your node for any content except data for ```/ipns/hpkg.haiku-os.org```.
* Install nginx
* Configure nginx