- Notifications
You must be signed in to change notification settings - Fork116
Self-hosted pastebin powered by Git, open-source alternative to Github Gist.
License
thomiceli/opengist
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Opengist is aself-hosted Pastebinpowered by Git. All snippets are stored in a Git repository and can beread and/or modified using standard Git commands, or with the web interface.It is similar toGitHub Gist, but open-source and could be self-hosted.
Home Page •Documentation •Discord •Demo
- Create public, unlisted or private snippets
- Init / Clone / Pull / Push snippetsvia Git over HTTP or SSH
- Syntax highlighting ; markdown & CSV support
- Search code in snippets; browse users snippets, likes and forks
- Add topics to snippets
- Embed snippets in other websites
- Revisions history
- Like / Fork snippets
- Download raw files or as a ZIP archive
- OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect
- Restrict or unrestrict snippets visibility to anonymous users
- Docker support
- More...
Dockerimages are available for each release :
docker pull ghcr.io/thomiceli/opengist:1.9
It can be used in adocker-compose.yml
file :
- Create a
docker-compose.yml
file with the following content - Run
docker compose up -d
- Opengist is now running on port 6157, you can browsehttp://localhost:6157
services:opengist:image:ghcr.io/thomiceli/opengist:1.9container_name:opengistrestart:unless-stoppedports: -"6157:6157"# HTTP port -"2222:2222"# SSH port, can be removed if you don't use SSHvolumes: -"$HOME/.opengist:/opengist"
You can define which user/group should run the container and own the files by setting theUID
andGID
environment variables :
services:opengist:# ...environment:UID:1001GID:1001
Download the archive for your system from the release pagehere, and extract it.
# example for linux amd64wget https://github.com/thomiceli/opengist/releases/download/v1.9.1/opengist1.9.1-linux-amd64.tar.gztar xzvf opengist1.9.1-linux-amd64.tar.gzcd opengistchmod +x opengist./opengist# with or without `--config config.yml`
Opengist is now running on port 6157, you can browsehttp://localhost:6157
Requirements:Git (2.28+),Go (1.23+),Node.js (16+),Make (optional, but easier)
git clone https://github.com/thomiceli/opengistcd opengistmake./opengist
Opengist is now running on port 6157, you can browsehttp://localhost:6157
To create and run a development environment, seerun-development.md.
The documentation is available athttps://opengist.io/ or in the/docs directory.
Opengist is licensed under theAGPL-3.0 license.
About
Self-hosted pastebin powered by Git, open-source alternative to Github Gist.