Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #265 from ipfs/fix/early-morning
Browse files Browse the repository at this point in the history
gateway: fix /ipfs on ipfs.io (oops)
  • Loading branch information
Lars Gierth authored Mar 18, 2017
2 parents c334752 + fed44e6 commit 406b4e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ipfs/gateway/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ server {
proxy_pass_header Server;
proxy_read_timeout 1800s;

# just pass through /ipfs and /ipns
location ~ "^/(ipfs|ipns|api)(/|$)" {
proxy_set_header Host "";
proxy_set_header X-Ipfs-Gateway-Prefix "";
proxy_pass http://\$upstream;
}

location /blog/ {
rewrite "^/blog(/.*)$" \$1 break;
proxy_set_header Host blog.ipfs.io:80;
Expand Down
2 changes: 1 addition & 1 deletion ipfs/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fi
if [ ! -f "$repo/config" ]; then
mkdir -p "$repo"
chown -R 1000:users "$repo"
docker run -i -v "$repo:/data/ipfs" --entrypoint /bin/sh "ipfs:$ref" -c 'ipfs init --bits 2048'
docker run -i -u 1000 -v "$repo:/data/ipfs" --entrypoint /bin/sh "ipfs:$ref" -c 'ipfs init --bits 2048'
restart=1
fi

Expand Down

0 comments on commit 406b4e1

Please sign in to comment.