SourceHut pages quick start

The steps for publishing your capsule are:

Once you’re live, we’ll look at ways to automate the process.

Your personal access token

You can generate your personal access token via meta.sr.ht:

OAuth 2.0 personal access tokens

Write it down for later reference.

Building your tarball

Here's a simple example. Let's say you write this file to index.gmi:

You can create a tarball for it like so:

Add any number of files other than index.gmi to expand this.

Using a static capsule generator

Here's another example of a capsule using gssg:

gssg

You can use any tool, just so long as it outputs static content.

Uploading your tarball

Once you have a tarball, upload it to pages.sr.ht:

Substitute “access token” with your personal access token, and username with your sr.ht username.

Want to use your own domain name? Review the extra steps here.

Once you run this command, your capsule should now be live at gemini://username.srht.site!

Next: Automating deployments

Automating deployments

Proxied content from gemini://srht.site/quickstart.gmi (external content)

Gemini request details:

Original URL
gemini://srht.site/quickstart.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.