keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
902 stars 37 forks source link

Hosting a Web page #3765

Open Tall-Lobster opened 4 years ago

Tall-Lobster commented 4 years ago

Dear keybase developers,

Keybase is amazing, its got encrypted chat, file storage, and most importantly encrypted git, but it would really be great if we can host websites with keybase.

Keep up the great work

initbar commented 4 years ago

This is definitely possible. You can use the public directory/namespace of the Keybase filesystem to host your website assets and access through [username].keybase.pub. At the current state, you can't place a facade custom domain though.

Tall-Lobster commented 4 years ago

Thats for the info @initbar. but is there a tutorial for this that I can follow with screenshots? Because I would really love to try this out

--update: I have built a site before but hosting it is something I am.not familiar with, so even if I build the HTML, I can't guarantee that it will actually host and be accessiable by that link. Anything would really help.

initbar commented 4 years ago

@Tall-Lobster no problem. Generally, all your static files stored in the public (e.g. /keybase/public/<username> on Linux) mount will be visible through the https://keybase.pub domain with the same file/directory structure. For example, I have a couple files on my https://keybase.pub/initbar public directory which can be visible on https://initbar.keybase.pub. It sounds like you have a site generator going on, so you would just need to copy your "compiled" assets into the public directory.

For myself, if I need to quickly host something, I would do the followings on Linux:

~$ run_keybase -g  # start the Keybase daemon
~$ cd /keybase/public/initbar
~$ # create a new file

Screenshot_2019-12-27_20-10-41

Once files are inside the /keybase/public/<username> directory, it will be synced w/ remote storage (I think Keybase is using Amazon S3 backend) and you should be able to retrieve it the same way you would go to a website.

Depending on your OS, the public directory path may be different so I would refer to the documentation on the directory location.

Tall-Lobster commented 4 years ago

Thanks @initbar for this tutorial, but someone also gave me an experimental way of doing it. So I really appreciate the help. Sorry for the delay some stuff got in the way.