feat: Update NGINX config in the README

This commit is contained in:
2025-06-25 13:18:48 +10:00
parent 3d40a7152f
commit c78d5f5d63

View File

@@ -84,12 +84,13 @@ To proxy Handshake domains to IPFS, you can use the following nginx configuratio
```nginx ```nginx
server { server {
listen 80; listen 80;
server_name ~^(?<domain>.+)$; server_name _; # Catch-all for all domains
location / { location / {
proxy_pass http://127.0.0.1:3000/$domain; proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;