Skip to content

Commit dcd95dc

Browse files
committed
fix: use public ipfs gateway as default to avoid 403 forbidden on access
1 parent ada0d18 commit dcd95dc

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎.env.example‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ PINATA_API_KEY=your_pinata_api_key_here
1919
PINATA_API_SECRET=your_pinata_api_secret_here
2020

2121
# Public IPFS gateway URL for accessing uploaded files
22-
IPFS_GATEWAY_URL=https://ipfs.vana.org/ipfs
22+
# Recommended to use your own dedicated IPFS gateway to avoid congestion / rate limiting
23+
# Example: "https://ipfs.my-dao.org/ipfs" (Note: won't work for third-party files)
24+
IPFS_GATEWAY_URL=https://gateway.pinata.cloud/ipfs

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ SCHEMA_DIALECT=sqlite
7171
PINATA_API_KEY=your_pinata_api_key_here
7272
PINATA_API_SECRET=your_pinata_api_secret_here
7373
74-
# IPFS gateway URL for accessing uploaded files
75-
IPFS_GATEWAY_URL=https://ipfs.vana.org/ipfs
74+
# Public IPFS gateway URL for accessing uploaded files
75+
# Recommended to use own dedicated IPFS gateway to avoid congestion / rate limiting
76+
# Example: "https://ipfs.my-dao.org/ipfs" (Note: won't work for third-party files)
77+
IPFS_GATEWAY_URL=https://gateway.pinata.cloud/ipfs
7678
```
7779

7880
## Local Development

‎refiner/config.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class Settings(BaseSettings):
5252
)
5353

5454
IPFS_GATEWAY_URL: str = Field(
55-
default="https://ipfs.vana.org/ipfs",
56-
description="IPFS gateway URL for accessing uploaded files"
55+
default="https://gateway.pinata.cloud/ipfs",
56+
description="IPFS gateway URL for accessing uploaded files. Recommended to use own dedicated gateway to avoid congestion and rate limiting. Example: 'https://ipfs.my-dao.org/ipfs' (Note: won't work for third-party files)"
5757
)
5858

5959
class Config:

0 commit comments

Comments
 (0)