Using our own domain instead of subdomain of streamlit(i.e streamlit.app)

I have recently purchased a domain named (snakeshares.live) and i want to deploy it on streamlit sharing(i.e community cloud) but i don’t want any subdomain like streamlit.app I just want users to see my domain i.e snakeshares.live how can i do it?

Repository - GitHub - PeddiBharath/SnakeShares

1 Like

You should be able to add the app in an iframe on a site on your domain. You can set the src attribute to point to the app’s URL with the query parameter embed=true.

Thanks for the help @Alexandru_Toader
I resolved the issue. For any people who might face the same issue the below steps might help you

  1. Deploy the code onto streamlit cloud and get link like this <name>.streamlit.app
  2. make an index.html with the code as an Example: SnakeShares/index.html at main · PeddiBharath/SnakeShares · GitHub
  3. Go to the “Settings” tab of your repository. Scroll down to the “Pages” section on the left sidebar. Under “Source,” select the branch you want to use for GitHub Pages (typically main or master) and the folder (usually /root for the main directory). Click “Save.” In the same “Pages” section, you can set a custom domain by entering in the “Custom domain” field.
  4. GitHub Pages will automatically create a CNAME file in your repository with your custom domain.
  5. Go to your DNS settings. Add the following A records:(add it individually) Host: @ Points to: 185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153
  6. Add a CNAME record:
    Host: www
    Points to: your-github-username.github.io

I hope it resolves

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.