blocktransfer / py-TAD3-horizon

Stock market infrastructure for the next (equitable) generation, built on Stellar.
https://tad3.dev
GNU Affero General Public License v3.0
2 stars 1 forks source link

Get stellar.toml to display natively #1

Closed JFWooten4 closed 3 years ago

JFWooten4 commented 3 years ago

Right now, https://stellar.blocktransfer.io/.well-known/stellar.toml (via Jekyll, GH-Pages) pulls up a file download rather than just displaying the toml (path in docs as stellar.html)

Make the periodically-updated stellar.toml file resolve to https://stellar.blocktransfer.io/.well-known/stellar.toml which points to GH pages ... or, ideally a way to do it for https://**blocktransfer.io**/.well-known/stellar.toml

Completed 8/11/21 by #3 by Sepand Haghighi

JFWooten4 commented 3 years ago

Also enable CORS on the stellar.toml so people can access this file from other sites.

JFWooten4 commented 3 years ago

Updated engagement: https://github.com/blocktransfer/stellar-interface/pull/2

sepandhaghighi commented 3 years ago

Hi

I saw your bounty in Gitcoin, and I'm here to give you a solution. Unfortunately, this problem has no exact answer in this condition (Github Page) (there are some hacky solutions (like #2 ) but I think it's not something that you want) This problem is related to content-type of .toml files, this type will be set by the server, and currently users cant change this setting in GitHub Pages (GitHub Pages supports more than 750 MIME types across 1,000s of file extensions. The list of supported MIME types is generated from the mime-db project, you can see there .toml file has application/toml type, and this type always leads to download!!

Solution :

Move your website to Netlify

  1. It's free
  2. Easy setup with GitHub and Jekyll
  3. Allow users to change headers - link

Best Regards Sepand Haghighi

JFWooten4 commented 3 years ago

Sepand

Ah I see. Thank you, Sepand!