astroport/.install/ipfs/ipfs-http-gateway.conf

19 lines
660 B
Plaintext

location /ipfs {
proxy_pass http://127.0.0.1:8080/ipfs;
proxy_set_header Host $host;
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;
}
location /ipns {
proxy_pass http://127.0.0.1:8080/ipns;
proxy_set_header Host $host;
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;
# Prevent Caching
expires 0;
add_header Cache-Control private;
}