diff --git a/README.md b/README.md index 0226155..331c24b 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,25 @@ curl http://localhost:3000/api/status ### 2. Testing with Sample Handshake Domains You can test with known Handshake domains that have IPFS content: -- `http://localhost:3000/ipfs.act` - Example \ No newline at end of file +- `http://localhost:3000/ipfs.act` - Example + + + +## Host proxying +To proxy Handshake domains to IPFS, you can use the following nginx configuration: + +```nginx +server { + listen 80; + server_name ~^(?.+)$; + + + location / { + proxy_pass http://127.0.0.1:3000/$domain; + + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +} +``` \ No newline at end of file