Skip to content

SourceBin/SourceBin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Twitter

SourceBin

SourceBin makes sharing code easy by providing an easy to use pastebin service. This repository contains the core services of SourceBin. Feel free to report any issues and suggestions in this repository.

Development

  1. Download or clone the repository
  2. Run make .env
  3. Edit the configuration in the .env file
  4. Run make self-signed-cert dhparam to generate local certificates
  5. Run make ENV=dev run
  6. Start developing

Deploying

  1. Download or clone the repository
  2. Run make .env
  3. Edit the configuration in the .env file
  4. Run make dhparam to generate dhparam
  5. Add SSL cert in secrets/ssl/certs/cert.pem and secrets/ssl/private/key.pem
  6. Add Cloudflare Authenticated Origin Pull cert in secrets/ssl/certs/cloudflare.crt
  7. Add Google Cloud Storage key in secrets/google/cloud-storage-key.json
  8. Point domain to server
  9. Run make start

Note

While we try to open-source as much as possible, SourceBin is not made for self-hosting. We will not provide support for hosting your own instance.