ProjectLibertyLabs / social-app-template

Social Application Template that uses Gateway Services
Apache License 2.0
1 stars 4 forks source link

Bug: images not displaying until logged in #138

Closed claireolmstead closed 2 months ago

claireolmstead commented 2 months ago

To recreate:

  1. Run local node
  2. Login and create posts with images
  3. Logout
  4. Refresh
  5. See no Images
  6. Log back in & see images
claireolmstead commented 2 months ago

After testing and QA, I learned that any bugs were related to my IPFS config. When on localhost, you need to make sure to set the ipfs UA Gateway to IPFS_UA_GATEWAY_URL="http://localhost:8080" and when in testnet, the following all need to be set.... IPFS_ENDPOINT="https://ipfs.infura.io:5001/" IPFS_GATEWAY_URL="https://gateway-testnet.infura-ipfs.io/ipfs/[CID]" IPFS_UA_GATEWAY_URL="https://gateway-testnet.infura-ipfs.io/" IPFS_BASIC_AUTH_USER="...." IPFS_BASIC_AUTH_SECRET="...."